Author Topic: Product short descrition field length  (Read 2102 times)

bestcons

  • Jr. Member
  • **
  • Posts: 98
Product short descrition field length
« 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]

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10422
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Product short descrition field length
« Reply #1 on: November 17, 2013, 18:19:25 pm »
category template

<?php echo shopFunctionsF::limitStringByWord ($product->product_s_desc, 40, '...') ?>
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bestcons

  • Jr. Member
  • **
  • Posts: 98
Re: Product short descrition field length
« Reply #2 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10422
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Product short descrition field length
« Reply #3 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28307
  • Always on vacation
    • Jenkin Hill Internet
Re: Product short descrition field length
« Reply #4 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

bestcons

  • Jr. Member
  • **
  • Posts: 98
Re: Product short descrition field length
« Reply #5 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