Variable set best practices

mathieu_brule
Mega Sage

Hi everyone,

I have an existential question about variable sets and best practices :

Let's imagine that I have 3 variables A, B and C. The 3 variables will be common to several catalog items, but for many catalog items, I'd like to display only A and B, whereas for other catalog items, only B and C, and for another items, only A.

What is the best way to follow :

- Create 3 variable set, for each of my variables ?  (so ONE variable per variable set)

- Create a variable set with my three variables, and according to the catalog item, display or not the variables I don't want.

 

Note that my customer wants to use Catalog Builder, so it seems that the second solution is not available if I'm trying to do it through Cat Builder...

I have to do it as an admin directly on the catalog item, whereas my customer would like to be fully autonomous...

 

What would you do ?

 

Thanks for your answers.

 

 
4 REPLIES 4

AnirudhKumar
Mega Sage

I would create one variable set with 3 variables and close the deal.

Trying to make it even more easier will make it harder, know what I mean lol?

_raj_esh
Kilo Sage

Hi Mathieu,

 

Scenario 1: If the catalog items will be developed by admins, then create a variable set and use client scripts to show or hide the variables(A, B, or C)

Scenario 2: If the catalog items are developed by some other team using Catalog Builder, then create 3 variable sets, (But you may also need to create 3 templates for each).

 

Completely depends on how you will be dealing with catalog administration. 

 

Hope it helps.

 

Thanks,

Raj

 

Thanks for your feedback.

 

So according to you, it doesn't matter that variable sets should have only one variable ?

 

Thanks both for your answers !

Hi Mathieu,

It completely depends on who will be managing the catalog items development. If the catalog development is done from Catalog builder by another team, Anyhow you will have to create a Template. I would create a variable set and make things easier.

Hope it helps.

Thanks,

Raj