Global $product changed
-
Hello!
In the fileadmin/class-enhanced-ajax-add-to-cart-wc-admin.php
there’s a functiondisplay_variable_product_add_to_cart
that usesglobal $product
, then sets it’s value to a new product.
When the shortcode is used in another product’s single-product view, this changes the global $product unexpectedly. This has caused a conflict with another plugin to add custom product tabs (content taken from wrong product) and I imagine there could be any number of other conflicting plugins.
Since the variable doesn’t seem to require global status, I’ve removed it and the plugin is now working as expected.The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Global $product changed’ is closed to new replies.