--- url: https://developer.youcan.shop/themes/objects/product.md --- # `product` object Information about a product. ### Properties *** | Name | Type | Description | | ------------------ | :-----------------------------------------------------------: | :----------------------- | | `id` | [string](../basics/types#string) | Product identifier | | `name` | [string](../basics/types#string) | Product name | | `slug` | [string](../basics/types#string) | Product slug | | `description` | [string](../basics/types#string) | Product full description | | `price` | [number](../basics/types#number) | Product price | | `visible` | [boolean](../basics/types#boolean) | Product visibility | | `compare_at_price` | [number](../basics/types#number) | Compare at price | | `categories` | [array](../basics/types#array) of [category](category) object | Product categories | | `images` | [array](../basics/types#array) | Product images | | `variants` | [product\_variant](./product_variant.md)\[] | The variants of the product | | `available` | [boolean](../basics/types#boolean) | Product is available for purchase | | `selected_or_first_available_variant` | [product\_variant](./product_variant.md) or `null` | Default selected variant "or" the first available product for purchase | | `first_available_variant` | [product\_variant](./product_variant.md) or `null` | First available product for purchase | | `selected_variant` | [product\_variant](./product_variant.md) or `null` | Default selected variant | | `has_only_default_variant` | [boolean](../basics/types#boolean) | If a product only has the default variant | | `structured_data` | [string](../basics/types#string) | A [schema.org](https://schema.org/) structured data representation of the product and its variants | | `url` | [string](../basics/types#string) | The product page URL | | `thumbnail` | [string](../basics/types#string) | Product thumbnail image URL | | `options` | [array](../basics/types#array) | Variant option definitions (name and values) | | `meta` | [array](../basics/types#array) | SEO meta title and description | | `metafields` | [array](../basics/types#array) | Product metafields, by namespace and key. See [metafield](metafield) | | `related_products` | [array](../basics/types#array) of [product](product) object | Products related to this one | | `averageRating` | [number](../basics/types#number) | Average review rating, from `0` to `5` | | `isTrackingInventory` | [boolean](../basics/types#boolean) | Whether stock is tracked for this product | | `skip_to_checkout` | [boolean](../basics/types#boolean) | Whether adding to cart sends the customer straight to checkout | | `preview_image` | [preview\_image](preview_image) object or `null` | The thumbnail image in several sizes, or nil when the product has no image |