Populate "Requested For" in shopping cart page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 06:30 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 06:34 AM
Locate the variable on the order guide and set it with the default value:
javascript:gs.getUserID()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 06:55 AM
I think what you are wanting is to copy whatever value is populated in the "Select user" field to the "Requested for:" field.
Assuming this is correct, and you are using the sc_layout driven cart macros, you could create a copy of the UI Macro: sc_cart_view_requested_for. Modify that copy to display the value in "Requested for:" with whatever you want. Then, modify your cart layout to use this UI Macro instead of the delivered sc_cart_view_requested_for. Keep in mind that sc_cart_view_requested_for is used for all carts, so your logic will have to deal with all orders, and not just those using this particular Order Guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 11:43 PM
Thank you Brad Pippert and ctomasi. Will try it out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2022 02:20 AM
How to bring selected user name into requested for..Can you please tell exact coding line