Announcement

Collapse
No announcement yet.

I've added a <br/> tag to my short description but can I stop the HTML tag from...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I've added a <br/> tag to my short description but can I stop the HTML tag from...

    I've added a <br/> tag to my short description but can I stop the HTML tag from showing in the cart?

    In your Product Details, put " - " (space dash space) into the short description where you want these breaks to appear.

    In your Product Layout(s) replace:

    HTML Code:
    <Actinic:Variable Name="ProductName" />
    with:

    HTML Code:
    <actinic:block php="true">echo str_replace(' &#38;#45; ', '<br/>', '<Actinic:Variable Name="ProductName" selectable="false" />');</actinic:block>
    Now the " - " will be replaced with a break on the product pages but the dash will appear on the cart, checkout, etc.

    With thanks to Norman Rouxel of www.drillpine.biz
Working...
X