How to check current item is OrderGuide in Client Script?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 10:29 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2024 05:48 AM
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