Skip to main content
Question
Developers
Amol Rangole
Sr. Software Developer
Asked a question 2 months ago

Does anybody know, what exact liquid tag must be added to show the image of product on order confirmation page ? refer the screenshot 1. I tried using the liquid tag shown in screenshot-order-2 but didn't worked ..

Where am I?

In Siteglide Community Forum you can ask and answer questions and share your experience with others!

Hi Amol

I used <img src='{{ product.product_data.properties["module_field_14/product_2"] | asset_url }}' alt="{{ product.product_name }}"/>

This is a snippet of the code I used below:


<div class="order-completed-grid">
	{% for product in this.order_products -%}
		<div class="order-completed-card">
			<img src='{{ product.product_data.properties["module_field_14/product_2"] | asset_url }}' alt="{{ product.product_name }}"/>
			<div class="order-completed-details">
				<p class="font-weight-bold blue-text no-mar">{{ product.product_name }}</p>
				<p class="no-mar"><span class="d-inline-block font-weight-bold width-100">Quantity:</span>{{ product.quantity }}</p>
				{% for attribute in product.order_product_attributes -%}
					{% if attribute.product_attribute_name != blank -%}
						<p class="no-mar"><span class="d-inline-block font-weight-bold width-100">{{ attribute.product_attribute_name }}:</span>{{ attribute.product_attribute_option_name }}</p>
					{% endif -%}
				{% endfor -%}
				<p class="no-mar"><span class="d-inline-block font-weight-bold width-100">Price:</span>{{ product.currency_symbol }}{{ product.price }}</p>
			</div>
		</div>
	{% endfor -%}
</div>

Related Questions

No related questions.

Question Stats

27 views
0 followers
Asked a question 2 months ago
Views this month