With the new version of the ajax add-to-cart plugin, you provide support for variable product. Unfortunately, the code seems to have a small issue: The script assets/js/frontend.js collects all data in the add-to-cart-form (around lines 38 to 48). Later on, it removes any data for variable products, that's not the product id, variation id, quantity and values of 'attribute'-select fields (lines 72 to 78). Unfortunately, this crashes the functionality of one of my other plugins, that depends on adding custom input-fields to the product-page and needs their values to be passed to the back-end as well.
In addition to that, the event 'adding_to_cart', that is triggered to give other plugins a possibility to add custom data, is called _before_ the lines, that override the data-object (again, lines 72 to 78), making it impossible to use that hook for variable products.
Is there any hope, that you will release a fix soon, to support third-party-plugins in the add-to-cart form-handling of variable products? I really like your plugin (especially in conjunction with the WCP Fly Cart) and would love to continue using it! :)
Thanks for the quick fix, I've seen, that you already published the changes to the WordpressRepo. So, I am a little late with my feedback: Everything works as expected! :)
Hi WPClever!
With the new version of the ajax add-to-cart plugin, you provide support for variable product. Unfortunately, the code seems to have a small issue: The script assets/js/frontend.js collects all data in the add-to-cart-form (around lines 38 to 48). Later on, it removes any data for variable products, that's not the product id, variation id, quantity and values of 'attribute'-select fields (lines 72 to 78). Unfortunately, this crashes the functionality of one of my other plugins, that depends on adding custom input-fields to the product-page and needs their values to be passed to the back-end as well.
In addition to that, the event 'adding_to_cart', that is triggered to give other plugins a possibility to add custom data, is called _before_ the lines, that override the data-object (again, lines 72 to 78), making it impossible to use that hook for variable products.
Is there any hope, that you will release a fix soon, to support third-party-plugins in the add-to-cart form-handling of variable products? I really like your plugin (especially in conjunction with the WCP Fly Cart) and would love to continue using it! :)
Thanks in advance and best regards,
Dario Lamprecht
Hi Dario,
Thank you for contacting WPClever Support Forum.
We’ve received your ticket and assigned one of our developers to help you with that.
He’ll be looking into your question and responding with specific instructions as soon as possible.
Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.
Best regards.
Janilyn T. - WPClever Support Agent
Hi Dario,
Thanks for informing us on this issue!
I've made an updated version 1.3.9.1 here https://www.dropbox.com/s/ii7me4nd0goh6nw/wpc-ajax-add-to-cart-1391.zip?dl=1. Please help me check it!
Best regards,
Dustin
Hi Dustin,
Thanks for the quick fix, I've seen, that you already published the changes to the WordpressRepo. So, I am a little late with my feedback: Everything works as expected! :)
Thanks for the blazing fast support!
Best,
Dario
You're welcome!
Feel free to submit a new ticket if you have any questions when using our plugin.
Best regards,
Dustin