how to identify from which order guide a catalog item is triggered?

Pooja85
Giga Contributor

Hello All,

I got a requirement to hide a variable set on a catalog item onLoad when it is triggered from a particular order guide.Though I am able to find that the the catalog item is triggered from an order guide using "g_service_catalog.isOrderGuide()" but how will I check if is triggered from a particular order guide ?Is there any way to do this? Could any anyone please guide me on this.

Thanks!

14 REPLIES 14

This works in Kingston as well, Can you try writing client script in your order guide to hide those variables?

Hello Alikutty,

I am able to hide the variables or variable sets which are on the guide using client-script but I wanted to hide variable/variable sets which are on the catalog item of the order guide when it is triggered from a particular order guide.

Ex: I have an order guide ABC which contains a catalog item XYZ & a variable set PQ on the catalog item. When XYZ item is ordered from ABC order guide I want to hide PQ variable set otherwise PQ should be visible when XYZ item is ordered directly.

 

Yea, I saw his response and figured there was miscommunication. He suggested something that you didn't really ask for (it would work, but the variable set is on the cat item and not the order guide).

So...if you don't mind, please review my suggestion now, thanks!

🙂


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hello Allen,

Thanks for your reply! .Will check & update you:) But is there a way I could get the sys_id of the order guide which triggered the catalog item onLoad of the catalog item ?

 

Oh yes I missed that part, but i did provide an alternate solution that is working 🙂

The following script can be added within the catalog item as well.

find_real_file.png