My SellerDeck Account | Newsletter | Free Trial

Community and 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

Reply
 
Thread Tools Search this Thread Useful Thread? Display Modes
  #1  
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,745
Thanks: 9
Thanked 730 Times in 615 Posts
Adding SD styling to prices breaks Recently Viewed Products.

PROBLEM

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.

DEMONSTRATION

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.

SOLUTION
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:
Code:
<actinic:variable name="PreFormattedPrice" value="Product Price Including Tax" />
With:
Code:
<actinic:variable name="TaxInclusivePrice" selectable="false" />
And also replace all:
Code:
<actinic:variable name="PreFormattedPrice" value="Product Price Excluding Tax" />
With:
Code:
<actinic:variable name="TaxExclusivePrice" selectable="false" />
__________________
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Reply With Quote
Reply


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 03:28 PM.


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