News:

Support the VirtueMart project and become a member

Main Menu

Product short description truncating

Started by perryworld, October 31, 2014, 12:06:50 PM

Previous topic - Next topic

perryworld

Hi,

This is our first VM site and we have a problem with the product short description, it is truncating at around 50 characters.
We checked in the database and all the data has been saved but when displayed it truncates and adds ... to the end of the description

We are using virtuemart.2.9.9.2.
Joomla version is 3.3.6 Stable
PHP version is 5.3.29

Any help would really be appreciated
Thanks

Rich


Milbo

lol wondered what you mean.

The short description is not trunkated. It is correctly displayed. BUT

The the layout showing the products is using a limitstring by word, which truncates it, yes. But only in this view, if you want to change it, use an override and use your own numbers :-)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

perryworld

Hi Milbo,

Thanks for your reply.

We are new to VM - where would we be looking to change the limitstring to be 200 characters as our client needs a bigger description here.

Cheers
Rich

jenkinhill

#3
It is in sublayouts/products.php and also products_horizon.php

   <?php // Product Short Description
                  if (!empty($product->product_s_desc)) {
                     echo shopFunctionsF::limitStringByWord ($product->product_s_desc, 60, ' ...') ?>

Be sure to use any edited files as overrides.

Sublayout overrides are placed in [yourjoomlatemplate]/html/com_virtuemart/sublayouts/
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

perryworld

Hi jenkinhill

Thanks for the reply - those changes fixed our problem.

Cheers
Rich