-
Notifications
You must be signed in to change notification settings - Fork 67
Add to cart with attributes stop working #502
Comments
Hi, I can see there are a couple of issues with the code here, I'll submit proposed changes shortly. Firstly, the attribute parameters are only tested for Post not for Get usage.
testing with WP5.4.2 woo4.2.2 polylang 2.7.3 php7.4.2 and urls like: the variation matching by attribute is WooCommerce native functionality in |
addToCartHandlerVariable() in this plugin originated as a version of the WooCommerce function add_to_cart_handler_variable() in class-wc-form-handler.php It appears that the customisation added had the intention of handling situations where add-to-cart is called with product in a different language from the current user interface language. I suggest therefore removing the customisation from this plugin which you could try in your local version by commenting out lines 45-46 of woo-poly-in tegration/src/Hyyan/WPI/Product/Cart.php |
@decarvalhoaa let me know if you see any issue removing addToCartHandlerVariable() added by you in 2016 in |
Please note:
Hello,
When adding the plug-in, or the add to cart link, stop working with the translated attribute. But disable the plugin or get back to working again. Some help? Did the translation or "attribute_pa_ac" change you?
LINK: cart/?add-to-cart=9038&quantity=1&attribute_pa_ac=00
What product versions and settings are you using when this issue occurs?
The text was updated successfully, but these errors were encountered: