VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Prvul on April 12, 2013, 10:33:52 AM

Title: layout list in product edit
Post by: Prvul on April 12, 2013, 10:33:52 AM
I need several product detail layouts, depending on categories (one layout for books, slightly different for software etc.).
I created /components/com_virtuemart/views/productdetails/tmpl/book.php and /components/com_virtuemart/views/productdetails/tmpl/software.php, manualy updated #__virtuemart_products.layout for an item, and it works - that article is displayed using my view.

Problem is - my view are not listed in Product Details Page on Product Information tab, instead No override option is selected so when I edit that product and save changes, layout gets updated to 0.

I guess there is some sort of layout list, but didn't manage to find it :(
Title: Re: layout list in product edit
Post by: jenkinhill on April 12, 2013, 12:16:46 PM
Start with this:  http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: layout list in product edit
Post by: Prvul on April 12, 2013, 18:43:45 PM
Well damn  ;D

VM 2.0.20b
Joomla 2.5.9
php 5.3.23

and all of that at http://cet.prvulovic.net/