Product Image Path

Hello Forum,

I am creating buttons to share my store products in social media and the Pinterest one requires the full URL to the product image. How do I obtain the product main image URL in templates\blocks\product_templates\default_template.tpl?

{$product.image_pairs.detailed.http_image_path}

But you might want to print out the whole $product data to ensure you're getting the value you want. You can include an html comment and then view source like:

{$product.image_pairs.detailed.http_image_path}

But you might want to print out the whole $product data to ensure you're getting the value you want. You can include an html comment and then view source like:

Correct value for product is

{$product.main_pair.detailed.https_image_path}

Yep. Had recently been working on the alternate images and so had 'image_pairs' stuck in my fingers.