
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.
VirtueMart 2.0 Troubleshooting
[…] My short product description is cut off […]
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 ?
Sara Thornton
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
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
Sara Thornton
Hi Mark,
Thanks for your post. Can you confirm which version of VirtueMart you’re using?
Best wishes,
Sara
mahendra
same problem, i am using joomla version 3.4.1
Sara Thornton
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
Best wishes,
Sara