How do we update the Requested For in the Order Confirmation Pop Up?

scottneeb
Tera Contributor

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.

find_real_file.png

21 REPLIES 21

john_duchock
Kilo Guru

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)

😞

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.

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'] "

peter_cawdron_p
Giga Expert

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

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  ?