No of selected units are not updated in the cart

Dear @Ollie ,

Thank you for helping me out last time.

I have observed a new issue from last couple of days. No of selected units for a particular products are not updated on the cart. Here are the steps to create the error.

  • Go to www.zillis.in
  • Click on any products.
  • Update the “Quantity” to 2.
  • The click on Cart icon on the top right.
  • Cart will not show the Quantity as 2.
  • And, I have to again update the quantity 2.
  • It’s a horrible user experience.

Here is the video of the error for reference. Error Video

Kindly look into the issue.

Hi @zillis ,

It’s because your quantity selector is out of tag. please refer below screenshot for reference

To fix this put quantity input into the form tag, please refer to the below screenshot

Hope it help…

Hey @Zillis.

Thanks for reaching out.

I appreciate the context and video that you have included as that is very helpful! Did the coding change advised by @gr_trading , work for you? If so, be sure to mark their post as a solution to inform others that may view the thread.

Have you made any custom coding changes to the theme’s coding? I can confirm with you that the quantity is not displaying the correct amount when adding more than one of the same products.

If you have made custom coding changes, you may need to duplicate your theme and roll back to an older version of your theme.

Looking forward to your response.

Hello @gr_trading ,

Thank you so much for the solution but not a techie to make these changes. If you can tell me which file needs to change then I ask someone in my team to do so.

@Ollie I have not tried the earlier solution as no that technically skilled.

Hi @zillis ,

File name would be main-product.liquid or product.liquid

Hope it helps…

Hello @gr_trading ,

The file name is product-templete.liquid

Thank you so much for your solution. It worked.