News:

Looking for documentation? Take a look on our wiki

Main Menu

Category view length of intro text

Started by Awerso, September 19, 2011, 23:03:11 PM

Previous topic - Next topic

Awerso

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!

Milbo

Hmm it is just at template thing. The function is already used to cut the texts on the browsepage
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

mjranim

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.