Hi guys,
I've just upgraded from 2.0.14 to .16 and unfortunately it looks like the "Product Layout" in Configuration->Templates and "Default Product Details Page" in Products-> Product Categories are being ignored.
Under Product Categories is not even saving the selected view I've created.
It works if I set the template manually in each product.
The product template view I've created worked perfectly in 2.0.14 just selecting it as the default one from the configuration page.
Is it a regression or an undocumented features?
Any suggestion?
Thanks
The live update changelist is on http://virtuemart.net/index.php?option=com_content&id=416
Updating did not affect my layouts.
The overwrite ordering is:
vm config, global
category,
product.
So you say the vm config and the category is ignored? Strange I worked on this, fixed something there, tested it and some users tested it also, so I am very suprised.
Please exchange in FE/views/productdetails/view.html.php line 333
shopFunctionsF::setVmTemplate($this, $category->category_template, $product->product_template, $category->category_layout, $product->layout);
with
shopFunctionsF::setVmTemplate($this, $category->category_template, $product->product_template, $category->category_product_layout, $product->layout);
Thanks Milbo,
that did the trick.
I thought it was something silly but I don't have enough experience on the inner workings of VM2 yet to find the issue by myself.
Thanks again.
Paolo
I even found another problem, thanks to PatBe60. I prepare an "a"version.
QuoteI even found another problem, thanks to PatBe60. I prepare an "a"version.
Unfortunately the problem is not completely solved in the "a" version:
The layouts are now working correctly. But the path in breadcrumbs is still wrong, when selecting a child variant of the parent product. (The child product is not assigned to any category.)
e.g. I select a subcategory (Various) of a maincategory (Arrangements) and after I select a product from the product module then the path is correct:
shop->arrangements->correct-subcategory->productname (look at pic 1)
After I select a child variant of the product in the dropdown menu and the path looks like this:
shop->arrangements->various->arrangements->correct-subcategory->productname (pic 2)
After selecting the parent product and childproduct again the path is shown correctly.
[attachment cleanup by admin]