VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: zbig on January 13, 2015, 08:16:04 AM

Title: Max length of words in the category view. Where the set?
Post by: zbig on January 13, 2015, 08:16:04 AM
Where in VM3 to set the value "product_s_desc" in the display category.
Default VM3 shows max 50 words. I would like to enlarge the value of the "max length of words" in the category view, e.g. to 440 words.

In VM2: com_virtuemart/views/category/tmpl/default.php
<?php // Product Short Description
if (!empty($product->product_s_desc)) {
?>

<p class="product_s_desc">
<?php echo shopFunctionsF::limitStringByWord ($product->product_s_desc440'...'?>


Where the value "limitStringByWord" in VM3?
Title: Re: Max length of words in the category view. Where the set?
Post by: AH on January 13, 2015, 10:16:41 AM
The view is now a sublayout in vm3

do an override

templates/your template/html/com_virtuemart/sublayouts/products.php
Title: Re: Max length of words in the category view. Where the set?
Post by: GJC Web Design on January 13, 2015, 10:23:01 AM
and a simple search would have found e.g. http://forum.virtuemart.net/index.php?topic=127571.0
Title: Re: Max length of words in the category view. Where the set?
Post by: zbig on January 13, 2015, 12:53:17 PM
Thank you very much for the explanation of the problem.