VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: newsomjk on October 07, 2013, 23:58:16 PM

Title: Different Product Details Page Templates
Post by: newsomjk on October 07, 2013, 23:58:16 PM
I'm trying to create a different template for a specific category to use but can't figure out how. I've created an override for the default.php file and that's fine. But how can I create a new one, say "default_subscription.php" and use that for a specific category?

When I go to product in the backend and click the dropdown for "Product Details Page" my only options are No Override, Default, PDF, Notify. And the same goes for specific categories. So how can I get an extra file in that list so that I may choose from more templates?
Title: Re: Different Product Details Page Templates
Post by: jenkinhill on October 08, 2013, 13:44:09 PM
You must put the new override file in this directory for it to appear in the liset:  yourjoomlatemplate/html/com_virtuemart/productdetails/

http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides
Title: Re: Different Product Details Page Templates
Post by: newsomjk on October 08, 2013, 15:13:59 PM
ah, I needed to remove the default_ from the beginning of the file name! awesome got it working, thanks for the help!