combination of multivariant and related products doesn't work

Started by p.barg, February 25, 2019, 16:48:45 PM

Previous topic - Next topic

p.barg

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

Milbo

For old versions, yes. We had similar problems before, but I thought I solved that by rewriting the js.

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

p.barg


Studio 42


p.barg

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.

GJC Web Design

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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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.