How can I remove the purchase button for sold out products?

Find the section of the template that displays the purchase button. This may vary depending on your theme, but it’s often within a form block or something similar. You’ll need to add Liquid code to check if the product is sold out and conditionally hide the purchase button.

{% if product.available %}
  
  
{% endif %}