How do we update the Requested For in the Order Confirmation Pop Up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2018 07:50 AM
As part of the Kingston upgrade it now displays an Order Confirmation dialog after you click Order Now. The problem we're having is it doesn't pull the Requested For from the catalog item we're ordering, so if the user changes the Requested For it doesn't update the Requested For in the Order Confirmation window. As you can see in this screenshot they are different.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2018 05:03 AM
Meh...this doesn't seem to work in London P2. I am back to disabling 2 step (and have 67 catalog items with a "requested_for" variable set)
😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2018 04:47 PM
If you change the line...
var embeddedWidgetOptions = ['auto_redirect','requested_for_id', 'requested_for_display']
to...
var embeddedWidgetOptions = ['auto_redirect'];//,'requested_for_id', 'requested_for_display']
It'll work again
The embeddedWidgetOptions option is a good idea. Looking at their code, it should work, but I couldn't get it to in my testing. You might get better results. In essence, it's looking for variables with those three names. If they exist, then it will use them. I tried this, putting strings into a catalog item with those names and appropriate values, but didn't work for me.
embeddedWidgetOptions.forEach(function (embeddedWidgetOption) {
if (typeof input[embeddedWidgetOption] != 'undefined')
options[embeddedWidgetOption] = input[embeddedWidgetOption];
});
If you're happy with the code in the post above, then changing that one line will get things working for you again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 08:26 AM
This worked for me. We're in London P3
"
If you change the line...
var embeddedWidgetOptions = ['auto_redirect','requested_for_id', 'requested_for_display']
to...
var embeddedWidgetOptions = ['auto_redirect'];//,'requested_for_id', 'requested_for_display'] "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2018 04:51 PM
Looking at this, they've tried to provide a means by which you can pass a variable through, but it's not well documented and doesn't appear to work properly.
If you change the widget server line...
var embeddedWidgetOptions = ['auto_redirect','requested_for_id', 'requested_for_display']
to...
var embeddedWidgetOptions = ['auto_redirect'];//,'requested_for_id', 'requested_for_display']
Which effectively sidesteps their solution, you'll find the code above works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2018 09:34 PM
This post has been really helpful.
But i still have one question:
If we are using a custom variable : 'u_requested_for' on all items, then what change should be done to get the custom requested for and its delivery information on the Order Confirmation ?