Skip to Content

Product Bulk Rate

The product_bulk_rate object describes a bulk discount for a product based on quantity.

Usage Example

{%- comment -%} Show bulk rates for a product {%- endcomment -%} <ul> {% for rate in product.bulk_rates %} <li> Buy {{ rate.quantity }} or more: - {% if rate.is_percentage %} {{ rate.amount }}% off {% else %} {{ rate.amount | money_with_currency }} off {% endif %} </li> {% endfor %} </ul>

Properties

amount

Returns the discount amount.

is_percentage

Returns true if discount is a percentage.

quantity

Returns the quantity to purchase to get this discount.

Last updated on