Nik Grey Posted November 11, 2013 Share Posted November 11, 2013 I am stocking my Cubecart and noticed an issue I can't resolve. Some of the text is not formatting - look: Here's source the for one of the products affected: Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 11, 2013 Share Posted November 11, 2013 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']); Quote Link to comment Share on other sites More sharing options...
Nik Grey Posted November 11, 2013 Author Share Posted November 11, 2013 Ah, thanks young man - if I shorten the description is appears as I expect. Excellent, I can live with that Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 11, 2013 Share Posted November 11, 2013 If you take the &hellip out, won't it work with the longer descriptions? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted November 12, 2013 Share Posted November 12, 2013 Thanks all. We have added the code to strip_tags on the short description regardless on length. This will reach the next release. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.