VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: camble on June 06, 2013, 17:51:47 PM

Title: Different template for product details page
Post by: camble on June 06, 2013, 17:51:47 PM
Hello,
I have had a look through the site, done some searches too but I couldn't find what I am asking for.

Basically I have a template that I'm using for the shop, which has a side navigation (categories) etc, which is great, however for the product details page I'd like to have it full width (so lose the sidenav module).

I've had a read into overrides but I can't see how that'll help me in this case, so can anybody help me?

Kind regards
Liam
Title: Re: Different template for product details page
Post by: jenkinhill on June 06, 2013, 18:53:03 PM
So you want to lose the modules published at the side for the product page? Make a menu item set to type "Product Details Layout"  - you can add this to a hidden menu module if you don't want to display the menu link itself - and associate your unwanted module(s) with all menu items except the new one..
Title: Re: Different template for product details page
Post by: camble on June 06, 2013, 19:25:20 PM
Hi Jenkinhill,
thank you for the quick response.

That kind of works, but when I choose the menu item type it asks me to select which product I should be using it for.
So if I choose Product A, for that product it's perfect but for all of the other products it still uses the default template.

Kind regards
Liam
Title: Re: Different template for product details page
Post by: AH on June 06, 2013, 20:04:27 PM
Try using metamodpro

http://www.metamodpro.com/ (http://www.metamodpro.com/)
Title: Re: Different template for product details page
Post by: camble on June 07, 2013, 12:07:30 PM
Hello Hutson,
I've downloaded and installed Metamod (free version), however I'm a little unsure of how to use it to fix my problem.

Is there any chance you can point me in the right direction?

Kind regards
Liam
Title: Re: Different template for product details page
Post by: AH on June 07, 2013, 18:29:38 PM
Try the free version, but I think you will be left with blank module on the sidebar as only the paide version gets rid of them completely if no content is in them.  But at least you can try first to see that you can get the module to work for you.

This will help you, but please read thoroughly and practice - I do not have time to do the work for you, but this is a great guide

http://www.metamodpro.com/metamod/recipes/36-component-specific/76-control-modules-on-virtuemart-pages (http://www.metamodpro.com/metamod/recipes/36-component-specific/76-control-modules-on-virtuemart-pages)
Title: Re: Different template for product details page
Post by: camble on June 18, 2013, 16:38:50 PM
Bit of a delayed reply, but just wanted to say thank you as MetaMod Pro worked absolutely perfectly!
Title: Re: Different template for product details page
Post by: AH on June 18, 2013, 16:57:35 PM
Glad I could help!