VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Awerso on September 19, 2011, 23:03:11 PM

Title: Category view length of intro text
Post by: Awerso on September 19, 2011, 23:03:11 PM
I'm setting up a new webshop in virtuemart 2 (1.9.8G / J1.7) and I was wondering where I could edit the length of the displayed intro text in the category view.
I'm able to limit the number of shown products to a specific number, but not the amount of intro words.

thx in advance!
Title: Re: Category view length of intro text
Post by: Milbo on September 20, 2011, 15:51:35 PM
Hmm it is just at template thing. The function is already used to cut the texts on the browsepage
Title: Re: Category view length of intro text
Post by: mjranim on June 06, 2012, 06:49:18 AM
I found the solution was in my templates folder html/com_virtuemart/category/default.php

<?php // Product Short Description
if(!empty($product->product_s_desc)) { ?>

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


Just change 40 to the amount that you want (this is characters not words).

Hope this helps someone.