VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: p.barg on February 25, 2019, 16:48:45 PM

Title: combination of multivariant and related products doesn't work
Post by: p.barg on February 25, 2019, 16:48:45 PM
Hello,

J!3.9.3, VM 3.4.3

Today I noticed that the selects in multivarariant products don't work, if those products have related products.

In that case, if a customer tries to select a variant from the drop down fields (size and color in my case), the product can't be found and the customer is directed to one of the related products instead.

Is that a known bug?

-- Petra
Title: Re: combination of multivariant and related products doesn't work
Post by: Milbo on February 28, 2019, 19:50:44 PM
For old versions, yes. We had similar problems before, but I thought I solved that by rewriting the js.

What says the js console?
Title: Re: combination of multivariant and related products doesn't work
Post by: p.barg on March 01, 2019, 10:42:20 AM
No errors/warnings in the JS console.
Title: Re: combination of multivariant and related products doesn't work
Post by: Studio 42 on March 02, 2019, 11:46:16 AM
Have you a link to check the bug ?
Title: Re: combination of multivariant and related products doesn't work
Post by: p.barg on March 02, 2019, 16:44:43 PM
I have a site on our preview server, where the problem occurs, see here:

http://bit-vorschau.de/j3-usa-bag/shop/kennzeichen-tasche-alabama-3

I have removed all VM overrides in the template. The problem seems to be in a view file (views/productdetails/tmpl/default.php), because if I use my override files for this template,
the issue is not there.
Title: Re: combination of multivariant and related products doesn't work
Post by: GJC Web Design on March 02, 2019, 17:12:02 PM
seems to insert the related product html into the product container

also gives this error
kennzeichen-tasche-alabama-3:1 Unchecked runtime.lastError: The message port closed before a response was received.

what ever that means

Title: Re: combination of multivariant and related products doesn't work
Post by: Studio 42 on March 03, 2019, 00:01:52 AM
Strange bug, as if the container is set on reloading variant
Before loading a variant
Virtuemart.containerSelector = ".productdetails-view"
on getting the child
Virtuemart.containerSelector = ".product-container"
.product-container is a class used for all products container.
In your case this set the related as main product, but in real the ajax request is right but not the extracted html.