Forum

Thread tagged as: Question, Shop

Getting Variant Details in Product Page

Hi,

Is it possible to get the variant fields for a product when displaying that product?

I have created a 'colour' variant and a new template (variant.html) that allows me to upload multiple images for the variant and I want to be able to display those images within in the product detail view.

Cheers Dave

David Kirk

David Kirk 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can get the product options but not the variants themselves yet. To do that you'd need to get the variants on the page and pass them into the template for the parent product.