This topic has 4 replies, 2 voices, and was last updated 3 years, 7 months ago ago by Olga Barlow
I am trying to create the ability to add items to cart from an URL in a textbox in the same fashion the woo commerce add to cart functions. The current theme always reloads the page whenever I link using ?add-to-cart=id
Hello,
Point is that “?add-to-cart=id” uses POST not Ajax add to cart by default.
Add the following classes to your button
progress-button etheme_add_to_cart_button ajax_add_to_cart
Check the add to cart after that.
Regards
Thank you – it seems to have worked to initiate the add to cart process in ajax but it still reloads the page upon clicking.
Hello,
Provide us with link to page where you use custom add to cart link and temporary WP Dashboard access. We’ll check.
Regards
You must be logged in to reply to this topic.Log in/Sign up