Support » Plugin: Enhanced AJAX Add to Cart for WooCommerce » Global $product changed

  • Resolved MSTannu

    (@mstannu)


    Hello!
    In the file admin/class-enhanced-ajax-add-to-cart-wc-admin.php there’s a function display_variable_product_add_to_cart that uses global $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)
  • Plugin Author The Rite Sites

    (@theritesites)

    Hi MSTannu!

    You will find that we have fixed this in the new version released today, version 1.1.1!

    Thank you for reaching out

    Cheers,
    The Rite Sites

Viewing 1 replies (of 1 total)
  • The topic ‘Global $product changed’ is closed to new replies.