VirtueMart 1.1.x [ Old version - no longer supported ] > Administration & Configuration VM 1.1

Short description length limit

(1/2) > >>

ibarreto:
Hello, is there a way to limit the number of characters in the short description of products? At least limit the short description that appears on the product list per category.

thank you

seyi:
You will probably have to do some custom coding for that
www/components/com_virtuemart/themes/[default]/templates/browse/[your_browse_template].php

You can limit the $product_s_desc variable with substr

ibarreto:
thank you seyi, I will go in that direction.

PRO:
you can go into myphpadmin and change the character amount #

WDCT:
VM2

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

Find:

<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, '...') ?>

Change to:

<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 200, '...') ?>

Navigation

[0] Message Index

[#] Next page

Go to full version