News:

Support the VirtueMart project and become a member

Main Menu

Different Product Details Page Templates

Started by newsomjk, October 07, 2013, 23:58:16 PM

Previous topic - Next topic

newsomjk

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?

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

newsomjk

ah, I needed to remove the default_ from the beginning of the file name! awesome got it working, thanks for the help!