VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: gyvr on August 20, 2012, 10:27:29 AM

Title: PB with Category display and ArticleAnywhere
Post by: gyvr on August 20, 2012, 10:27:29 AM
Hello,
The default template (default.php) for category use the following code -about line 254- to display the product short description:
echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, '...')

I believe this is a bad behaviour, since it potentialy prevents proper fumctionality of other plugins. As an example, by truncating the "$product->product_s_desc" VM defeats the use of tools like Article Anywhere (at least with lengthy article names that are useful for ease of use by developers).

I would suggest two possible approaches:
1) echo the full description (echo $product->product_s_desc) . It is my problem to keep length reasonnable for my site.
2) Make the length configurable (0: not truncated, any > 0 value: Number of characters to display)

Best regards
Gerard
Title: Re: PB with Category display and ArticleAnywhere
Post by: Milbo on August 20, 2012, 13:07:34 PM
No, you must solve this with a template override then.

It is the first time that I hear about this 3rd party extension. What we do is showing the functions we have. When we remove it, a lot people use this feature, which you just replaced by a 3rd party plugin.