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

This entry was posted in VirtueMart on by .

About 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).

Leave a Reply

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

7 thoughts on “How to Extend the VirtueMart Short Product Description from 40 Characters to 400 Characters

  1. Pingback: VirtueMart 2.0 Troubleshooting

  2. khashayar

    HI, while using VirtueMart I’ve noticed 1 unpleasant feature. Is the
    product description text size is limited ? Because, when I’m trying
    to add more text,(cut it) It’s impossible even to save it…. What could be
    the cause of it ? Do you know ?

    Reply
    1. Sara Thornton Post author

      Hi khashayar,

      Which version of VirtueMart are you working with? Is the issue with the “short product description” or the main product description?

      Best wishes,
      Sara

      Reply
  3. Mark

    I have read your instructions for changing the product description length which were go to
    “components/com_virtuemart/views/category/tmpl/default.php:
    and change the 40 to a higher number
    product_s_desc, 40, ‘…’) ?>

    I have browsed to that folder and read the code and that code isn’t there

    Reply