Page 1 of 1

Trade Customer Pricing within Greybox Upsell Popup

Posted: Mon Jul 14, 2014 5:00 pm
by leej
Hi Norman,
We have recently relaunched a site for a client of which the development site can be viewed at http://dev2.centurius.co.uk

The client has noticed that when a customer logs into their account when they get to the product page they can see the retail and trade price which is fine. The best product to test is under Golf Buggies and Titan Lithium.

I have set up a test account for you to look at with both un & pw being test.

When they then click on any of the related upsell products within the right hand column the pop up displays the default retail price only. I have check the price layouts and all use the same price template.

When you add the upsell product to the cart then the correct trade price is added.

Have I overlooked anything? Does anything in addition need to be added the upsell template in order for the trade price to appear?

Any help is greatly appreciated.
Regards.
Lee.

Re: Trade Customer Pricing within Greybox Upsell Popup

Posted: Mon Jul 14, 2014 8:25 pm
by norman
Hmmm... Looks like something that worked in earlier SD versions needs tweaking for your SD 2013. Luckily it's a 2 character tweak.

Go to Design / Library / Layouts / Upsell Items / Upsell Setup Code.
Around line 36 is:

Code: Select all

var inb2b = '<actinic:NOTINB2B></actinic:NOTINB2B>' == '';
Change it to:

Code: Select all

var inb2b = '<Actinic:NOTINB2B></Actinic:NOTINB2B>' == '';
I.e. Capitalise the 2 occurrences of actinic.

Please let me know if that helps so I can update the add-on if so.

Re: Trade Customer Pricing within Greybox Upsell Popup

Posted: Tue Jul 15, 2014 9:35 am
by leej
Hi Norman,
That did the trick! Many thanks for your help.

Regards.
Lee.

Re: Trade Customer Pricing within Greybox Upsell Popup

Posted: Tue Jul 15, 2014 10:10 am
by norman
Super. I'll incorporate that tweak into the add-on. I'll send you an updated copy by email in case you need to re-install.