Author Topic: Multi variant error when SEO enabled 3.0.18.19  (Read 1725 times)

bortolani

  • Jr. Member
  • **
  • Posts: 91
Multi variant error when SEO enabled 3.0.18.19
« on: January 23, 2017, 00:29:47 am »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10018
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Multi variant error when SEO enabled 3.0.18.19
« Reply #1 on: January 23, 2017, 12:18:17 pm »
Uncaught ReferenceError: addthis is not defined

Maybe it is fixed already by using this http://dev.virtuemart.net/attachments/download/1044/com_virtuemart.3.0.18.9_extract_first_9427.zip version
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bortolani

  • Jr. Member
  • **
  • Posts: 91
Re: Multi variant error when SEO enabled 3.0.18.19
« Reply #2 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

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: Multi variant error when SEO enabled 3.0.18.19
« Reply #3 on: January 23, 2017, 16:01:34 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

  • Jr. Member
  • **
  • Posts: 91
Re: Multi variant error when SEO enabled 3.0.18.19
« Reply #4 on: January 23, 2017, 16:18:10 pm »
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

  • Jr. Member
  • **
  • Posts: 91
Re: Multi variant error when SEO enabled 3.0.18.19
« Reply #5 on: January 23, 2017, 18:22:04 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10018
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Multi variant error when SEO enabled 3.0.18.19
« Reply #6 on: January 24, 2017, 09:52:36 am »
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.

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

bortolani

  • Jr. Member
  • **
  • Posts: 91
Re: Multi variant error when SEO enabled 3.0.18.19
« Reply #7 on: January 24, 2017, 10:00:51 am »
Hi Milbo,

Quote
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.

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.