VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: pmurray on November 08, 2012, 22:36:26 PM

Title: Multiple layouts for products
Post by: pmurray on November 08, 2012, 22:36:26 PM
VM 2.0

I would like to have two layouts for my product pages. One that can display the prices and a "add to cart" button. The other won't display the info, only a "ask a question" button.
This is what the latter looks like, http://shafferdistributing.com/index.php/equipment/parts/277/49/bill-acceptors/conlux-nbm-3500-detail.

No product would use both layouts.

Any help is appreciated.
Title: Re: Multiple layouts for products
Post by: jenkinhill on November 08, 2012, 23:31:29 PM
This sort of question has been answered so many times here.

Use template overrides, assigning the overrides to either categories or specific products.  http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Title: Re: Multiple layouts for products
Post by: pmurray on November 09, 2012, 16:52:20 PM
The link isn't working. Is it anything like these? http://forum.virtuemart.net/index.php?topic=90935.0, http://forum.virtuemart.net/index.php?topic=94044.0

I felt like I was following the instructions right and it wasn't working. I'll do some more research.