Jump to content

Linebreaks missing in productinformation at orderform


datex

Recommended Posts

Hi

 

I have just upgraded to WHMCS 5.22 - using web20cart. After the upgrade I have experienced this:

 

When i browse the products everything is fine - but when I choose order "Order Now" and goes to "Product Configuration" - all the line breaks are missing in the product description. Any idea how I solve this?

Link to comment
Share on other sites

  • 4 months later...

I created a new ticket with WHMCS for this issue ( FYW-353828 ). In the meantime, I figured out a workaround. In the configureproduct.tpl template, for your order form template, change the following:

 

{$productinfo.description}

 

to

 

{$productinfo.description|nl2br}

 

This will change all "\n" line breaks to html <br /> tags in the given variable. More info is described here:

http://www.smarty.net/docsv2/en/language.modifier.nl2br.tpl

 

This works for me. However, this needs to be addressed by WHMCS, as it shouldn't have to be done.

 

Sean

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