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:
<?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.
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).
VirtueMart 2.0 Troubleshooting
[…] My short product description is cut off […]
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 ?
Which version of VirtueMart are you working with? Is the issue with the “short product description” or the main product description?
I have read your instructions for changing the product description length which were go to
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
Thanks for your post. Can you confirm which version of VirtueMart you’re using?
same problem, i am using joomla version 3.4.1
Thanks for your feedback Mahendra. This solution is for VirtueMart 2.0, hence why you’re probably not seeing the same code as mentioned above.
The solution you’re looking for is hopefully here: http://forum.virtuemart.net/index.php?topic=127571.0