News:

Looking for documentation? Take a look on our wiki

Main Menu

Product default layout

Started by paolo69, December 22, 2012, 19:48:18 PM

Previous topic - Next topic

paolo69

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

jenkinhill

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

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

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);
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

paolo69

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

Milbo

I even found another problem, thanks to PatBe60. I prepare an "a"version.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

patrik60

#6
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]