Skip to main content
The product object contains all information about a single product. It’s available on product pages and provides access to everything needed to display product details, handle variants, and enable purchasing.
Usage: Available on product pages - use to display product information, images, pricing, variants, and purchase forms

Basic Product Information

Access the core product details that every product page needs:

Available Properties

Core Properties

Pricing Properties

Stock Properties

Custom Data Fields

Product Images

Display product images with responsive optimization:

Image Properties

When looping through product.images:

Special Image Properties

Product Variants

Handle product variants (size, color, etc.) and their selection:

Variant Properties

When using product.options: When looping through option_values:

Add to Cart Form

Create functional purchase forms with variant support:
Display related or recommended products using the related_products object:
When looping through related_products, access properties with rp. prefix:

Complete Product Page Example

Best Practices

Image Optimization

Always use the {{#img}} wrapper with appropriate sizes for responsive images

Accessibility

Include proper alt text, labels, and ARIA attributes for screen readers

Variant Handling

Use JavaScript to update pricing and availability when variants change

SEO Optimization

Include structured data for products to enhance search results

Next Steps

Category Object

Learn about displaying product listings and category pages

Basket Object

Understand cart functionality and integration

Order Object

Display order confirmation and thank you pages

SEO Object

Optimize product pages for search engines