I make shopify 'limit cart quantity' public app but when add new product in cart, not check condition . when i refresh page then work proper
My limit cart quantity app is not work without refresh page. count cart product using get data from '/cart.js' and check condition in js file .
This JS file add in theme using script tag. But it work proper when i refresh page.
I try to call script after click on checkout button without reload page in my application.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
477 shopify - when i click on add to cart button, page refreshes and then product is added how can i do this without getting the page refreshing
714 liquid - Shopify: Product grid - how overwrite a Product STOCK-OUT msg, with "Coming Soon" if it's in a ComingSoon collection
492 Want to add a Product Detail Dropdown (That shows Product title, image and price) inside a contact form in shopify
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.