VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: meinekatze on October 10, 2011, 12:19:46 PM

Title: 2.0.0-RC-2H: Custom Product Details Layout Template not handed down from Config
Post by: meinekatze on October 10, 2011, 12:19:46 PM
2.0.0-RC-2H, J1.7.1

Dunno if i fail to see my mistake or if it's a bug.

I cannot hand down the Template > Product Layout i set.
Neither in Shop Configuration, Categories or Subcategories.
The default.php will always be used until i set it on the product page itself.

thanks & cheers
Title: Re: 2.0.0-RC-2H: Custom Product Details Layout Template not handed down from Config
Post by: PRO on October 11, 2011, 00:12:28 AM
When a product is created WHILE the main config is set to default. It automatically saves it as "default.php"

So, you might can do a template override for default.php
http://forum.virtuemart.net/index.php?topic=89334.msg292712#msg292712

OR, do an sql update to change all of the products to your new default.

Title: Re: 2.0.0-RC-2H: Custom Product Details Layout Template not handed down from Config
Post by: Milbo on October 11, 2011, 00:27:06 AM
Yes that is a small bug, I need to prevent the storing and when there is no layout set to take the default. I used this technique already for the shoppergroups.
Title: Re: 2.0.0-RC-2H: Custom Product Details Layout Template not handed down from Config
Post by: meinekatze on October 11, 2011, 22:44:43 PM
Quote from: BanquetTables.pro on October 11, 2011, 00:12:28 AM
OR, do an sql update to change all of the products to your new default.

Overrides makes it a bit hard (for me) to keep the oversight.
Could you point me to how to update the sql in this case?

thanks