Why are product variants not showing and the add to cart button not disappearing?

Hi all,

I found that my store has several error now. My customers should be able to choose variants on the page, but now they couldn’t. The link below is one of the example. There should be M,L and XL size. It just show up with the price, but no variants are available.
https://animes-pro.com/collections/cospa/products/%E9%A0%90%E8%A8%82%E6%97%A5%E6%9C%9F%E8%87%B320-sep-21-cospa-%E6%B5%B7%E8%B3%8A%E7%8E%8B-%E8%8D%89%E5%B8%BD%E6%B5%B7%E8%B3%8A%E5%9C%98-%E9%95%B7%E8%A2%96-%E9%BB%91%E8%89%B2-t-shirt
Some of my products are sold out, but the add to cart button doesn’t disappear. Instead, my customers are able to click add to cart button, and they will go to an error page. Please see the link below. Is the problems related to themes/ Apps? How can I solve the problems?
https://animes-pro.com/collections/%E5%8F%AF%E5%8B%95%E7%8E%A9%E5%85%B7-%E7%8F%BE%E8%B2%A8/products/bandai-marvel-shf-%E7%B7%8B%E7%B4%85%E5%A5%B3%E5%B7%AB-action-figure-%E7%8F%BE%E8%B2%A8
Thanks in advance.

1 Like

@animes-pro that product has variant your theme code may be broken so I will suggest restoring origin version from the main theme copy.

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme you want to edit, and then click Actions > Edit code.

  3. Under the Templates header, click into one of the .liquid files you have edited recently.

  4. Click Older versions next to the .liquid file name.

  5. Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.

  6. Optional: click Preview and see if the error was fixed.

    more Roll back to an older version of your themehttps://help.shopify.com/en/manual/online-store/themes/extend/theme-code

I have tried to restore the original version of theme code, but it doesn’t work. The problem still exists. Please tell me what else I can do now. Thanks.