News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Product Short Description in VM 3

Started by mikekiy, January 01, 2015, 18:48:23 PM

Previous topic - Next topic

mikekiy

Hi All

This is describing a VM3.0.2 install on J3.3.6

The world of VM 3 has changed a few things.  The introduction of 'SubLayouts' means that some of our old overrides have moved home.  So far I've managed to find the new home of the 'Product Short Description' limiter.  This is now found in 'public_html/components/com_virtuemart/sublayouts/products.php' line 95.

To change the parameter on your site make an override in your site's template files.

example:  \public_html\templates\yourtemplatename\html\com_virtuemart\sublayouts

Copy the file 'components\com_virtuemart/sublayouts/products.php' into your override folder and then change the variable by editing line 95, which reads

echo shopFunctionsF::limitStringByWord ($product->product_s_desc, 60, ' ...') ?>

to something that suits your needs - personally '240' is good for me so the revised line is

echo shopFunctionsF::limitStringByWord ($product->product_s_desc, 240, ' ...') ?>

Hope that helps.

Mike

jenkinhill

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

AH

QuoteThe introduction of 'SubLayouts' means that some of our old overrides have moved home.  So far I've managed to find the new home of the 'Product Short Description' limiter.

This VM team supplied page gives a better explanation of the sublayouts.

http://docs.virtuemart.net/tutorials/templating-layouts/199-sublayouts.html
Regards
A

Joomla 4.4.5
php 8.1