How to check if a product is available for purchase? ✅

### Explanation To check if a product is available: ```liquid {% if product.available %} {% else %} {% endif %} ``` Key points: - `product.available` returns true if: - Product is published - At least one variant is available - Works with inventory tracking on/off - Handles all inventory policies Reference: [Shopify Product Object](https://shopify.dev/docs/api/liquid/objects/product)

Answer Options:

  • {% if product.inventory > 0 %}
  • {% if product.in_stock %}
  • {% if product.available %}
  • {% if product.inventory_available %}
Shopify Free Test
← PreviousQuestion 1 of 1Finish →
00
← PreviousFinish →
Copyright ©Michael Bollin. Found some mistake?[email protected]