Jump to content

Backwards product description HTML


thinkerytim

Recommended Posts

When I use simple HTML to create a product description, after viewing it in the browser from the shopping cat view, the text is all backwards. For example, here's the very simple HTML I post in the product description:

 

This is my basic product offering <br />
If you're experienced with basic website design, this is for you.<br />
Learn all about web design at <a href="http://webdesign.org/" target="_blank">Web Design</a>.<br />
NOTE: web design is just a thing to learn.

 

Here's the HTML generated on the front end by WHMCS:

 

<div class="name">
   Basic</div>

<span class="prodfeature"><span class="feature">Learn all about web design at <a href="http://webdesign.org/" target="_blank">Web Design</a>.<br /></span>
<span class="prodfeature"><span class="feature">NOTE</span><br /> web design is just a thing to learn.</span>

<div class="clear"></div>

<div class="description">This is my basic product offering. <br /><br />
If you're experienced with Joomla and basic website design, this is for you.<br /><br />
</div>

 

How does this all happen? Why are my paragraphs broken out as features, and the order of the items reversed?

Link to comment
Share on other sites

this occurs because WHMCS thinks that you are using "Feature Highlights"...

 

http://docs.whmcs.com/Standard_Order_Form_Templates#Using_Feature_Highlights

 

 

Using Feature Highlights

 

Feature Highlights are supported by the Slider, Modern and Comparison cart templates. The idea behind these is to allow you to highlight or bring attention to certain key features of each product/service.

 

They are used by entering features in the format "Attribute: Value" within the product description field, one per line, starting on the first line of the description. And in the case of the Slider & Modern templates, you can also include a text description to be displayed below them.

 

so because your descriptions contains colons, WHMCS is converting them to use Feature Highlights.

 

the way to get around this if use Comparison, Modern or Slider (or a custom based on any of them) is to either not use colons in your description - in your case, after "Note" and in your URL link... or replace all colons with its html code equivalent & # 5 8 ; (remove the spaces).

 

so using the html code replacements, your description would be

 

This is my basic product offering <br />

If you're experienced with basic website design, this is for you.<br />

Learn all about web design at <a href="http://webdesign.org/" target="_blank">Web Design</a>.<br />

NOTE : web design is just a thing to learn.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated