Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

updateQuantity not working properly // modified dawn

Solved

updateQuantity not working properly // modified dawn

raymondarevalo
Shopify Partner
3 1 1

Whenever I update or remove an item from my cart drawer, nothing changes in the cart-drawer section. I have to reload the page in order to see an updated cart.

With further inspection I realize that my 

 

fetch(`${routes.cart_change_url}`, { ...fetchConfig(), ...{ body } }){}

 

 within my updateQuantity only has the 'cart-icon-bubble' section and not 'cart-drawer' section.

 

Does anyone know why my fetch to cart_change_url does not include a 'cart-drawer' section?

Accepted Solution (1)

raymondarevalo
Shopify Partner
3 1 1

This is an accepted solution.

Issue found:
I installed env-cmd and was running env-cmd shopify theme dev to work around Shopify's 502 error from a few days ago. 

 

Resolution:

removing env-cmd

View solution in original post

Reply 1 (1)

raymondarevalo
Shopify Partner
3 1 1

This is an accepted solution.

Issue found:
I installed env-cmd and was running env-cmd shopify theme dev to work around Shopify's 502 error from a few days ago. 

 

Resolution:

removing env-cmd