Product Promotion
The product_promotion
object describes a promotion applied to a product.
Usage Example
{%- comment -%} Show product promotion details {%- endcomment -%}
{% if product.promotion %}
<div>
<strong>{{ product.promotion.title }}</strong><br>
<span>{{ product.promotion.description }}</span><br>
<em>Type: {{ product.promotion.type }}</em>
</div>
{% endif %}
Properties
description
Returns the promotion description if any.
title
Returns the promotion title if any.
type
Returns the promotion type
Last updated on