How to check current item is OrderGuide in Client Script?

Jaeik Lee
Mega Sage

Hi.

I want to make a field display true in a few OrderGuides.

So i want to make onLoad script that check type of catalog item. 

5 REPLIES 5

Hi @Renu9 

you can use g_service_catalog.isOrderGuide() method to retrieve a true/false whether current catalog item is in an Order Guide.

In above post, I think that "order type constant" is the name of the table where Order Guides are (the table is sc_cat_item_guide, while for Catalog Items is sc_cat_item)

 

Hope this helps.

 

Regards,

Simone