VirtueMart Forum

VirtueMart 2 + 3 => Administration & Configuration => Topic started by: bestcons on November 17, 2013, 17:53:26 pm

Title: Product short descrition field length
Post by: bestcons on November 17, 2013, 17:53:26 pm
Hi,

The text in the product short description next to the thumb image is truncated after about 35 characters, showing thereafter just a number of full stops .......(See annex).
How can extend the length of this field.

Regards,


bestcons

[attachment cleanup by admin]
Title: Re: Product short descrition field length
Post by: GJC Web Design on November 17, 2013, 18:19:25 pm
category template

<?php echo shopFunctionsF::limitStringByWord ($product->product_s_desc, 40, '...') ?>
Title: Re: Product short descrition field length
Post by: bestcons on November 17, 2013, 20:33:54 pm
I had already before changed 40 into 200, but without result.
Anyhow thanks for your response.
bestcons
Title: Re: Product short descrition field length
Post by: GJC Web Design on November 17, 2013, 22:19:55 pm
If your in the correct template it has to work - it's a very simple function limitStringByWord() in components/com_virtuemart/helpers/shopfunctionsf.php  line 498
Title: Re: Product short descrition field length
Post by: jenkinhill on November 17, 2013, 22:28:43 pm
The image looks like you are using a template override, so it will be in that template file that the change is needed.

I use <?php echo $product->product_s_desc ?>  for the short description without truncate.
Title: Re: Product short descrition field length
Post by: bestcons on November 20, 2013, 16:08:34 pm
I apparently had modified the wrong file. As you were so insisting I continued searching and noticed that the path you indicated in my case, using VM 2.0.24a was incorrect. Based the description I used as path /public_html/components/com_virtuemart/views/category/tmpl/default.php and Yes it worked.
Thanks.
bestcons