SKU Changes for All Products When Quantity Changed In Cart Debut Theme

SKU Changes for All Products When Quantity Changed In Cart Debut Theme

joshwp
Explorer
61 1 9

Hello. I am having an issue where the SKU displayed in the shopping cart is changed to the SKU of the top product whenever someone adds multiple items to the cart and then changes the quantity of another product. I posted a picture as an example. When I increased the second products quantity all the SKUS were changed to the top product's SKU, P9173. I did add code to the cart-template.liquid section to display these, so there coding error may lie there.  Any help would be very much appreciated. Website URL https://schoolposters.com/ 

joshwp_0-1694437832657.png

 

 

Reply 1 (1)

niraj_patel
Shopify Partner
2391 516 515

hello @joshwp 
i checked you are DEBUT theme with some modifications.

Also got your problem on cart page it is due to ajax cart and adding products to cart via ajax without load the page.
so when product added HTML replaces with old so somewhere in code SKU field written only once thats why it shows First product's SKU on all products.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com