Hi,
In the VM 3 configuration I see that I can choose default joomla template for Category : "Category Template"
Is there any way to do that for the Product View page ?
I mean I need "Joomla template A" for category view and "Joomla template B" for product view.
Thank you
if you choose template A for cat does that cascade down to the details?
Thank you for your answer.
If i choose Template A in cat then I will have the same template in the product details.
The problem is that I need a different template in product details.
And I am talking about Joomla system template not a VM template.
Thank you
If the config can't do what you want I guess you need to do something in components\com_virtuemart\views\productdetails\view.html.php
around
shopFunctionsF::setVmTemplate($this, $category->category_template, $product->product_template, $category->category_product_layout, $product->layout);
isn't swapping joomla templates a bit radical?
Can't u just achieve what u want with over rides , css etc ?
The only manageable way to switch Joomla templates rather that a hack is to assign menu items to each template. A Joomla menu link to each category of product would do it - but who would want to bother with that.......
but he wants worse than this.. catA->templateA
products of catA->templateB
would mean a menu to every product.. ;)
Maybe I cannot explain correctly what I need.
If I assign a template to category,
when I click a product it will be loaded in the parent category's template bur I need a different joomla template.
The only solution is to assign a menu item for every product, which is impossible.
Now in the configuration there is already a template chooser for the category and loads the template in /components/com_virtuemart/views/category/view.html.php in the following lines :
if(empty($category->category_template)){
$category->category_template = VmConfig::get('categorytemplate');
}
So I need the same functionality for the product view I guess.
The reason I need that is that I work with gantry framework.
So in gantry I have the possibility to load JS, css and have different template structure, layout, modules, positions etc in my template override.
So in product page ONLY I need to load some JS and CSS, I also need to have different layout in page and finally I need some extra modules to be displayed.
And to achieve all the above I need to be able to set a Joomla template to the product views.
That changes the category view template, not the Joomla template.
Then I haven't found where this is being set :
http://prntscr.com/9fmr9d
which is in Virtuemart Configuration -> Shopfront Settings
it must be related to the core joomla menu setting of which template... not VM