VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: perryworld on October 31, 2014, 12:06:50 PM

Title: Product short description truncating
Post by: perryworld on October 31, 2014, 12:06:50 PM
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

Title: Re: Product short description truncating
Post by: Milbo on October 31, 2014, 18:08:40 PM
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 :-)
Title: Re: Product short description truncating
Post by: perryworld on November 01, 2014, 00:14:11 AM
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
Title: Re: Product short description truncating
Post by: jenkinhill on November 01, 2014, 11:12:26 AM
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/
Title: Re: Product short description truncating
Post by: perryworld on November 01, 2014, 23:09:35 PM
Hi jenkinhill

Thanks for the reply - those changes fixed our problem.

Cheers
Rich