VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: CADO on February 23, 2014, 20:41:49 PM

Title: How to add static description to all products that belong to a category?[SOLVED]
Post by: CADO on February 23, 2014, 20:41:49 PM
Hi guys.

I wish to have a static description below the product name (item's page view) and the standard product description on the bottom of the page as usual.

For example (see pic attached please), I have a category called "wedding cakes", all products inside this category will have a static description below the name of each product.

Regards

[attachment cleanup by admin]
Title: Re: How to add static description to all products that belong to a category?
Post by: jenkinhill on February 25, 2014, 13:35:00 PM
You are already using template overrides, assuming that the overrides include a [yourjoomlatemplate]/html/com_virtuemart/productdetails/default.php override file then make a copy of that file and edit the copy to add your additional description immediately under the product title. Name the edtited file as default2.php or whatever, and place it in your productdetails override directory. Then edit your category to use that new file as Default Product Details Page.

http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides

Title: Re: How to add static description to all products that belong to a category?
Post by: CADO on February 25, 2014, 22:24:43 PM
Perfect!!

Thank you very much Jenkinhill