Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

Re: Issue: Cart Quantity Remaining After Completed Purchase

Issue: Cart Quantity Remaining After Completed Purchase

GoDarkBags
Tourist
10 0 2

I'm in the transaction testing process of setting up my wholesale portal using the Dawn theme right now, and I'm encountering a rather peculiar issue with my shopping cart. After I complete a transaction and click continue shopping, my cart still contains the same number of items I had just previously added and purchased... so now, even if the item out of stock (and locked out in our catalog), as long as the customer keeps the items in their cart they can still head to checkout and place an order for the item. Is there any way to have the cart automatically clear after purchase? 

Replies 5 (5)

YOD_Solutions
Shopify Partner
284 29 43

Shopify normally clears cart items after purchase. Do you use apps that modify cart? for example, apps that dynamically create variants or options? 

Founder @ JsRates: Custom Shipping Rates
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more about JsRates visit the JsRates home page or JsRates documentation
- Find JsRates on Shopify app store
GoDarkBags
Tourist
10 0 2

Hi YOD thanks for getting back to me! I do have two third party apps on my site at the moment. BSS Wholesale solution and BSS Login and lock price. I have reached out to them and they have said it was the shopify theme. I'm starting to think otherwise though 😕

YOD_Solutions
Shopify Partner
284 29 43

Assuming "https://godarkbags.com/" is your store, I can see a "Post Affiliate Pro" script fetches and updates cart each time a page loads. Check if this is causing the issue.

Founder @ JsRates: Custom Shipping Rates
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more about JsRates visit the JsRates home page or JsRates documentation
- Find JsRates on Shopify app store
GoDarkBags
Tourist
10 0 2

hey thanks again for replying, sorry, no thats not the site we're using for this. I'm setting up our separate wholesale portal at the moment:

portal.godarkbags.com 

YOD_Solutions
Shopify Partner
284 29 43

Ok. I can see a script "bss-b2b-js" fetching cart data each time a page loads. I also see the same script stores the cart data in the browser's "Local storage" with key "cart". After checkout, if you still see the cart object in the local storage has the cart items in its "items" array - then the script could be culprit. 

Founder @ JsRates: Custom Shipping Rates
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more about JsRates visit the JsRates home page or JsRates documentation
- Find JsRates on Shopify app store