'wholesale app shopify not working with cart ajax
Our client asked me to make a function to add an products to cart from page /collections/all, using the - and + buttons for the <input type="number">. And I did it using ajax. And it works well. The products is added and removed from the cart from page /collections/all. But now the client needs to install the Wholesale Club app. And the note of this application says the following:
Wholesale Club is not compatible with AJAX/popup carts. If your theme uses an AJAX/popup cart, please disable this feature.
And that left me at a loss. Can you please tell me if the whosale app really won't work with my custom ajax add to cart script?
This functionality is very much needed by the client. Thanks!
Solution 1:[1]
You never need to use the Ajax add to cart in any store. You can always just submit a form. So if you have to, replace your Ajax cart call with a form submit and you can also play with that App too.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | David Lazar |
