Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Free product multiple choices with Woocommerce AJAX Cart
- This topic has 10 replies, 2 voices, and was last updated 3 years, 2 months ago by Laurent MASSÉ.
-
AuthorPosts
-
July 8, 2020 at 2:59 pm #16005Laurent MASSÉParticipant
Hello everyone,
I just bought this plugin, and it is working extremely well, so thank you for that.
I am using Woocommerce AJAX Cart on my website, to allow the cart to refresh instantly when adding or reducing the quantity of a certain product.
I have created an auto-coupon to be reedemed when customer add a certain product to the shopping cart. When at the check-out page, customer have to select the free item that they want. And this is where my problem is : when you choose one the free item, the cart does not refresh instantly with this new item.
Is there a solution to my problem ? To allow the compatibility of WooCommerce Extended Coupon Features PRO with AJAX Cart ?
Thank you so much in advance for your help, and do not hesitate to ask me if you need more information or screenshots.
Regards
July 8, 2020 at 10:15 pm #16007Soft79KeymasterPlease send an url + steps to reproduce the issue on your site.
July 13, 2020 at 9:05 am #16023Laurent MASSÉParticipantDear Soft79,
Thank you for your prompt reply. I am sorry I couldn’t get back to you earlier.
Here is the product you can add to cart : Costa – Tuna Alley
Then you can go to Cart. The 4-free product appears and you can choose the color. I’d like that when you choose “1” in the color of your choice, the cart updates automatically with my WC AJAX Cart plugin, and that you don’t need to press “Mettre à jour le panier” (French for “Update cart”).
For now, if the user does not click on “Update cart” and go to check-out page, the 4-free product appears again and I think it might confuse the user. That is why it would be perfect if it could work with my AJAX plug-in.
Thank you very much in advance, and do not hesitate to ask me if you need any more information.
Regards
July 13, 2020 at 3:54 pm #16024Soft79KeymasterYou can apply this custom javascript to enable automatic refresh:
jQuery( document ).on( 'change input', '.wjecf-auto-submit input[type="number"]', wacRefreshCart );
July 13, 2020 at 4:45 pm #16027Laurent MASSÉParticipantThank you very much.
Where should I apply it ? in Plugins > Editor > WC Ajax Cart, or WC Extended Coupon Features PRO, or somewhere else ?
July 13, 2020 at 5:02 pm #16028Soft79KeymasterYou can add it to your child theme. Uf you don’t know how to do that, you can use a plugin like https://wordpress.org/plugins/live-css-js-code-editor/ .
July 13, 2020 at 5:22 pm #16030Laurent MASSÉParticipantI downloaded the plugin, and copy-pasted your code in “JavaScript Code” of my child theme but it is not working 🙁 Have I been doing something wrong ?
Thank you for your assistance, and sorry for my incompetence ..
July 13, 2020 at 5:38 pm #16033Soft79KeymasterI don’t see the snippet anywhere, so maybe you’re not using the plugin in the right way. I don’t see any trace of the css/js plugin. Is it actually activated?
July 13, 2020 at 5:45 pm #16035Laurent MASSÉParticipantSorry, I deleted it after seeing it was not working. Just put it back (y)
July 13, 2020 at 5:51 pm #16036Soft79KeymasterTry replacing the snippet with:
jQuery( document ).on( 'change input', '.wjecf-auto-submit input[type="number"]', function() { wacRefreshCart(); } );
July 13, 2020 at 6:09 pm #16037Laurent MASSÉParticipantIt is now working fine ! Thank you so much for your assistance and your reactivity !!
-
AuthorPosts
- You must be logged in to reply to this topic.