News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Multi variant error when SEO enabled 3.0.18.19

Started by bortolani, January 23, 2017, 00:29:47 AM

Previous topic - Next topic

bortolani

Hi,

Joomla 3.6.5 - VM 3.0.18.19

Problem: if you create a new product with multi variants and you have Joomla SEO enabled, then choosing a child variant from dropdown takes you to a wrong page. If you disable SEO then everything is OK.

You may check the bug here: https://www.puffosport.it/puffo2/en/triathlon/triathlon-accessories/buoys-and-safety/zone3-swim-buoy-28l-3617

Please note that if you select a pre-existing product created with a previous version of VM (such as 3.0.17.x) then everything is OK.

I tried to analyze the database but everything looks fine at that level.

Any idea???

Bruno

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bortolani

Hi Milbo,
no, that did not work.
Furthermore version 9427 adds other problems. For istance it messed up category layouts as you can see here: https://www.puffosport.it/puffo2/en/triathlon/triathlon-accessories/buoys-and-safety

So far 3.0.18.9_9424 has proved to work fine for my site apart the problem with multi variants and SEO

lindapowers

Quote from: bortolani on January 23, 2017, 15:50:55 PM
Hi Milbo,
no, that did not work.
Furthermore version 9427 adds other problems. For istance it messed up category layouts as you can see here: https://www.puffosport.it/puffo2/en/triathlon/triathlon-accessories/buoys-and-safety

So far 3.0.18.9_9424 has proved to work fine for my site apart the problem with multi variants and SEO

For the category settings read here https://forum.virtuemart.net/index.php?topic=136450.0 selecting them in the menu item worked for us in latest beta, they are making many changes there and templates with overrides will have to update for all those to work properly.

You can enable "legacy view" too in VM/configuration/templates

bortolani

#4
Yes, in fact I was just checking that.
Problem with the latest version (3.0.18.9_9427) is that the default is ignored and you must set the number of products per row in each category, otherwise it shows one product per row regardless of the value you set in configuration->template.

Setting legacy does not change the situation.

Bruno

bortolani

#5
Hi, after some tests I discovered that the problem arises when a child variant is generated because, no matter which method you choose, VM only creates a record in the default language _virtuemart_products_xx_xx table.

I have 2 languages and by default VM creates a new record only in the _virtuemart_products_en_en table and not the _virtuemart_products_it_it table.

To create an entry for the second language you have to explicitely edit the product form and switch to the second language.
In previous versions both entries were created by default, also because in most cases you will not change name or description or anything else in child products apart from SKUs.
Opening the product page is usually useless.

Have you got a fix for that?

Thanks, Bruno

Milbo

I wonder in which version it stopped working. But you do not need the language entry for an optional language any longer. It is just important that the entry for the primary language is available.

Quote from: bortolani on January 23, 2017, 16:18:10 PM
Problem with the latest version (3.0.18.9_9427) is that the default is ignored and you must set the number of products per row in each category, otherwise it shows one product per row regardless of the value you set in configuration->template.

Ah yes, I noticed this problem also. I take a look.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bortolani

Hi Milbo,

QuoteBut you do not need the language entry for an optional language any longer. It is just important that the entry for the primary language is available.

You need the second language entry otherwise when Joomla SEO is enabled when you choose a variant from a drop down you are redirected to a wrong page.
Ajax works correctly only if it exists a record for the child product in all _virtuemart_product_xx_xx tables.