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 a Jack (or Jill) of many trades. A web designer and developer, an ethical SEO implementer, an AdWords advocate, as well as being our in house user-guide creator and trainer. In her spare time she loves a bendy/stretchy yoga session, and feels most happy when she's near the ocean (ideally with a ridiculously absorbing book).

Comments (7)

Leave a Reply

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

Connect With Us

Contact Us

4 Redwood Lodge, Reigate
Surrey, RH2 0LU, UK

WebHolism Limited © 2006 - 2021
Registered in England and Wales, Registered Number 7290215
ICO Registered: ZB042427