Jump to content

Text not getting formatted.


Nik Grey

Recommended Posts

CubeCart is programmed this way, but I submitted a bug report because of the difference in display based on the product description being longer or shorter than Store Settings, Layout tab, Length of product precis:

* Longer: strip all HTML tags and truncate, then append ellipsis.

* Shorter: use as is.

 

/classes/catalogue.class.php, near line 876 (line split for clarity):

$product['description_short'] = (strlen($product['description']) > $GLOBALS['config']->get('config', 'product_precis'))

? substr(strip_tags($product['description']), 0, $GLOBALS['config']->get('config', 'product_precis')).'…'

: $product['description'];

 

That is to say, when using the product description in the View Category listing, the description is supposed to be cut short with no styling. In my bug report I suggested applying the same process to the short descriptions as well.

 

: strip_tags($product['description']);

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.

×
×
  • Create New...