My Sellerdeck Account | Free Trial

Sellerdeck Community & Knowledge Base

Go Back   Sellerdeck Community > Discussion Areas > Bug Reports

Search powered by Google
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Search this Thread Useful Thread? Display Modes
Old 12-Feb-2016, 10:12 PM
NormanRouxel's Avatar
NormanRouxel NormanRouxel is offline
Registered User
Join Date: Dec 2002
Full Name: Norman Rouxel
Posts: 10,809
Thanks: 9
Thanked 763 Times in 637 Posts
Adding SD styling to prices breaks Recently Viewed Products.


Recently Viewed Products saves some product details (name, price, image) via JavaScript as single quoted text.
The price is extracted from layouts Product Price Excluding Tax and Product Price Including Tax.
If a site owner styles the displayed product price, that adds a SPAN containing single quotes around the returned price. Too many quotes breaks the Save Recent Product Details... layouts.


Standard demo site.
Select the Engagement Ring.
Go to Design Tab.
Click on the displayed product price to view layout Product Price Including Tax.
In Layout Code pane, right click layout Tax Inclusive Price, select Edit Appearance and set the Font Colour to red.
OK out and an error should appear in the Save Recent Products Details... layout.

Don't use a Layout (which the user can tinker with elsewhere in the design) in the "Save Recent Products Details..." code. Use a Variable instead.

In the 3 "Save Recent Products Details..." layouts, replace all:
<actinic:variable name="PreFormattedPrice" value="Product Price Including Tax" />
<actinic:variable name="TaxInclusivePrice" selectable="false" />
And also replace all:
<actinic:variable name="PreFormattedPrice" value="Product Price Excluding Tax" />
<actinic:variable name="TaxExclusivePrice" selectable="false" />
Norman -
Edinburgh, U K / Bitez, Turkey
Reply With Quote
The Following User Says Thank You to NormanRouxel For This Useful Post:
MrsBee (15-Feb-2018)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 06:55 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.