https://xfztr448onq3bqw1-71576191201.shopifypreview.com
please help to hide the buy now button when an item is soldout
A user needs to hide the “Buy Now” button specifically when products are sold out on their Shopify store. An image shows the current product page layout.
Proposed Solution:
theme.liquid file before the </body> tagIssue Identified:
Status: The discussion remains open with an unresolved technical issue requiring a corrected code snippet that properly checks inventory availability.
https://xfztr448onq3bqw1-71576191201.shopifypreview.com
please help to hide the buy now button when an item is soldout
Hi @Shahil1 ,
Go to your Shopify Admin Panel.
Navigate to Online Store → Themes.
Click on Edit Code (not Customize).
Open the theme.liquid file (found inside the Layout folder).
Scroll down and paste the code just before the tag:
hi this hides the buy now button for all products on the mobile