Alexander Hörl
Alexander Hörl
Thank you! This is a great solution, I didn’t know you could add scripts to the checkout but it perfectly fixes the problem.
@hoektoe The solution suggested by @mister-cairns needs to be implemented individually therefore I haven't merged it into the master.
> clearCheckout() @mister-cairns How does your `clearCheckout() ` function look like? Do you just remove all line items using `removeLineItems()` from Shopify js buy?
@nandorojo I've added your solution to my 'thank you' page but when I load it, only one line item gets removed. For every time I reload the page one more...
@nandorojo Yeah they're all showing up. How do you run your `useThankYouClearCart()` hook on your 'thank you' page? Just inside a `useEffect()` when the page loads?
Sure, this is how my file looks like, I had to rewrite your code in plain JS since I don't use TS in my project. ``` import React, { useEffect,...
To my knowledge it hasn’t been solved, I’ve tried the technique with adding a script in the Shopify checkout section but it doesn’t work.
Hey, First of all I’m glad you like my project. I’ve actually thought about that myself as well haven’t researched it further though. As far as I know you can...
@melindavoo Thanks for your help, I didn’t know about metafields on Shopify but it looks pretty good and exactly like what @cordial is looking for. I don’t think we should...
Same error here, did you find a solution? go version go1.14.2 darwin/amd64