VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: hazael on May 16, 2022, 12:26:14 PM

Title: Bug in template category after upgrading to VM 4.0.2
Post by: hazael on May 16, 2022, 12:26:14 PM
After upgrading VM from 4.0 to VM 4.0.2, selecting the category template to bs3-default.php does not change anything.
Despite selecting the bs3-default.php file, the category template points to default.php

The same is true for selecting product details. Despite changing the template, the content from the default.php file appears.


VirtueMart 4.0.2 10661
Joomla 3.10.x
Title: Re: Bug in template category after upgrading to VM 4.0.2
Post by: hazael on June 01, 2022, 10:19:24 AM
The bug, however, is on the side of the Custom Filters (2.13.0) from breakdesigns.net

Customfields should display search results based on the file:
/components/com_virtuemart/sublayouts/bs3-products.php

Unfortunately, this is not the case...
The component always points to the file regardless of the template selection:
/components/com_virtuemart/sublayouts/products.php

Even if in the custom template I will create the flile:
/templates/my-template/html/com_virtuemart/sublayouts/products.php

The customfields component will always refer to a file:
/components/com_virtuemart/sublayouts/products.php
Title: Re: Bug in template category after upgrading to VM 4.0.2
Post by: Milbo on June 16, 2022, 22:27:26 PM
Maybe this is fixed with the next bugfix release. I worked on this.

In general, the override is always prefered/taken. The idea of this system is to be able to use normal bs3 templates without extra overrides for virtuemart. So if you start without overrides. There will be another layout system for bs4 in the next 1-2 months.
Title: Re: Bug in template category after upgrading to VM 4.0.2-4.0.6
Post by: hazael on July 11, 2022, 10:39:24 AM
There is already VM version 4.0.6 and so far the problem with overwriting the template for categories has not been fixed.

For the record:
I have a custom file for a category in my template directory:
/../com_virtuemart/views/category/my-category.php
For example, in the "orderby-displaynumber" css class section, I select the manufacturer's name from the list. After selecting the manufacturer, my custom category template is replaced with the default system template:
/../com_virtuemart/views/category/default.php

Currently, after each virtuemart update, I have to additionally overwrite the default Virtuemart file.
Title: Re: Bug in template category after upgrading to VM 4.0.2
Post by: Studio 42 on July 13, 2022, 16:24:04 PM
/../com_virtuemart/views/category/my-category.php is not the way to add overrides
You should use
templates/YOURTEMPLATE//html/com_virtuemart//category/default.php
Title: Re: Bug in template category after upgrading to VM 4.0.2
Post by: hazael on July 14, 2022, 10:54:51 AM
It gives no results. even if the file name in the template is identical, in many cases the page is displayed directly from the Virtuemart component