Catalog Client Script on Multiple Catalog Items

Brendan Hallida
Kilo Guru

Hey there,

Just a quick question - I have a catalog client script that I would like to use over multiple catalog items.   They reference variables in a variable set, so the script will be the same across the three catalog items.   In the client script, you need to reference a catalog item.

find_real_file.png

Is it possible to apply to multiple catalog items?

Cheers,

Brendan

1 ACCEPTED SOLUTION

bernyalvarado
Mega Sage

Hi Brendan,



Its possible if your variables are within a variable set. That way you can associate your Catalog Client Script to a variable set.



Thanks,


Berny


View solution in original post

7 REPLIES 7

bernyalvarado
Mega Sage

Hi Brendan,



Its possible if your variables are within a variable set. That way you can associate your Catalog Client Script to a variable set.



Thanks,


Berny


Ah ha, you are correct Bernie, was staring right in front of me.



I have another dilemma - the variable name that I am basing the script off actually is in a different variable set than the fields that I want to reference it.



So Variable Name is in variable set A



The variables that are affected by the client script are in variable set B.  



Can this be done?



Cheers,


Brendan


Great question Brendan!



Lets first think about the intent of variable sets and client script in association to a variable set...



The key reason why this is possible is for a design reason. It allows you to encapsulate common logic the one you can later reuse in other catalogs.



Having said that... would you agree with me that affecting a variable from another variable set sounds odd from a design perspective?



Perhaps you need to rethink how your variable sets are defined today or rethink the logic you're employing



Thanks,


Berny


By the way... feel free to share here the specifics of the variables you're dealing with. I'm sure the community can provide you great inputs. We're here to help



Thanks,


Berny