Skip to Content

ProductBulkRate

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

{%- comment -%} List bulk rates for a product {%- endcomment -%} {% for rate in product.bulk_rates %} <rate qty="{{ rate.quantity }}" amount="{{ rate.amount }}" percentage="{{ rate.is_percentage }}"/> {% endfor %}

is_percentage

Returns true if discount is a percentage.

amount

Returns the discount amount.

quantity

Returns the quantity to purchase to get this discount.