News:

Support the VirtueMart project and become a member

Main Menu

Product short descrition field length

Started by bestcons, November 17, 2013, 17:53:26 PM

Previous topic - Next topic

bestcons

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]

GJC Web Design

category template

<?php echo shopFunctionsF::limitStringByWord ($product->product_s_desc, 40, '...') ?>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bestcons

I had already before changed 40 into 200, but without result.
Anyhow thanks for your response.
bestcons

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

#4
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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

bestcons

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