Announcement

Collapse
No announcement yet.

HTML format tags showing in checkout

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

    HTML format tags showing in checkout

    Hi there,

    We have some lengthy product short descriptions and these we force into lines using the <br> tag (along with the requisite escape characters !!<<>>!! etc.) This prevents unwanted browser-forced carriage returns and makes the product short description all the more readable. However, at the checkout, the formatting tags are shown in all their glory which looks ugly, confusing and negates all attempts to improves the aesthetics of the site.

    Has anyone found a workaround for this problem? Is there one? Do we have to revert to removing all tags and having capriciously broken product titles?

    Regards

    Beaming Baby

    #2
    That unwanted stuff will probably show up in the customer email and downloaded order as well. Far better to never use formatting or embedded HTML in Product Descriptions.

    Here's another way. Make a product name like:

    Description line 1 ~ Description line2

    And in your product layout(s), replace variable ProductName with:
    Code:
    <actinic:block php="true">echo str_replace('~', '<br>','<actinic:variable name="ProductName" encoding="perl" selectable="false" />');</actinic:block>
    And now all "~" will be replaced by a new line but only on the product pages.

    The Cart, Order, Emails, etc. will show the full text with the innocuous tilde spacer.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X