Skip to main content
Virtuemart Logo

How to Extend the VirtueMart Short Product Description from 40 Characters to 400 Characters

You may be wondering why the short description of your product (often seen in the category view) is cut off.  The default of VirtueMart limits the short description display to 40 characters, and there is not currently an option to change it in VirtueMart 2.0.

This has to be changed in the backend files:

components/com_virtuemart/views/category/tmpl/default.php:

<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, ‘…’) ?>

Change the 40 to what ever you would prefer (400, if that floats your boat), safe and refresh your page, and you should now see your new character limit in place.

 
Discover More VirtueMart Troubleshooting Solutions


Sara Thornton

Sara is WebHolism's SEO Guide and Trainer. She's the one you'll see in all our YouTube videos, and helping folks out with their SEO queries on social media. She runs the fabulous SEO Clarity Club which teaches women how to do their own SEO. In her spare time she loves board games, and splashing around in the sea.

Comment

Leave a Reply

Your email address will not be published. Required fields are marked *