Compatibility issue with Product Bundles
-
Hi,
I just stumbled upon a very elusive bug in your plugin, when it’s combined with official WooCommerce Product Bundles.
Your plugin overrides default variation attribute values (for
select
element and the.variable-items-wrapper
element), if the bundled product is set to “Filter Variations” & “Override Default Selections” (which essentially hides the variation selector). Your plugin sets thoseselect
element’s attribute values tonull
instead.Check out a demo site here. The demo site is running barebones WP + WooCommerce + Product Bundles. So we know that nothing else could be causing this. You can see in the demo that the “Variable Product B with 2 variations” product doesn’t show the price, that’s because the attribute selector (element with ID
pa_size_3
) is empty, when it should’ve been pre-filled based on bundled product’s settings. Without your plugin that works just fine, but with it, the default value is overwritten to nothing.Here is a config for that Bundled Product (pay attention to the area highlighted in red, that’s what your plugin ends up overriding):
The reason it’s a problem is if I want to add that product to cart via AJAX – I need to know which attributes have been selected. And because your plugin resets those hidden
select
fields back tonull
, I can’t properly scrape the data to pass bundled product validation on the backend.Regards,
AlexThe page I need help with: [log in to see the link]
- The topic ‘Compatibility issue with Product Bundles’ is closed to new replies.