I’m trying to make it work with Variable product which have that “Any <attribute>…” option set in the product edit page, under the Variations tab. When I have it set, the product is not being added to the cart. When I change it to the actual variation options, it works.
I don’t have it online, only locally for now, if I had I’d be happy to share a URL with you. Let me know if need help setting this up for debugging. I’m using all default woocommerce templates in my theme.
Also, because of this, it’s throwing an error:
PHP Fatal error: Uncaught Error: Using $this when not in object context in <...> woocommerce-ajax-add-to-cart-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php on line 157
Thanks for the help!
- The topic ‘Not working for variable products with “Any” option’ is closed to new replies.