Need help with scOrderGuide widget html code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 11:24 AM
Hi everyone,
I am trying to edit the code on this widget to display a variable from the catalog item. Attached is the variable request_name, the location of where I would like request_name visible and the code I'm trying to edit. Is this possible? I would like short description removed and replaced with the request_name variable.
<!-- {{::item.short_description}}-->
<!-- {{::item.short_description}}-->
<!-- More testing to deterine where short desc is------>
Line 155 item.short description,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2023 07:36 AM
Hi @Gemma4
Yes, it's possible. One way to do it would be to:
1) Replace item.short_description with item.request_name (line 155) within the Body HTML template field.
2) Add the following after item = $sp.getCatalogItem(itemData); (line 113) in the Server script field:
*but* keep in mind this widget is used on all of your Order Guides so you'd need to add conditional logic so that the above code only applies for the specific Order Guide.