On the product detail page for the "Dawn/Rise" theme, if a product with only one variant is sold out, the "Buy Now" button will appear to be available for purchase. This is an example of how to fix this.
Since this issue may be resolved in the future, we use Javascript to determine if an item is sold out and change the status to a "Buy Now" button.
◆ Advantages of implementation: Can be implemented with just a few lines of code
◆Specific steps: Add a customized Liquid block to the product information section of the product template and insert the code.
This is an example of how to fix the "Buy Now" button appearing to be available for purchase when a product without a variant is sold out in the "Rise/Dawn" theme.

How to set it up: Add a customized Liquid block to the product information section of your product template and insert the code.

