Bulk Pricing
Volume-based pricing tiers for wholesale.
Updated
On this page
Overview
Bulk pricing offers automatic discounts when customers buy larger quantities. Discounts are configured per size and apply automatically in the cart.
Reading Bulk Discounts
import dash from "@/lib/dash"
const { product } = await dash.products.get("blue-dream")
// Each size can have bulk discounts
const size = product.attributes[0].options[0].sizes[0]
console.log(size.bulk_discounts)
// [
// { min_quantity: 3, discount_type: "percentage", discount_value: "5" },
// { min_quantity: 5, discount_type: "percentage", discount_value: "10" },
// { min_quantity: 10, discount_type: "percentage", discount_value: "15" }
// ]
Displaying Bulk Pricing
export function BulkPricingTable({ size }) {
if (!size.bulk_discounts?.length) return null
return (
<table>
<thead><tr><th>Quantity</th><th>Discount</th><th>Price Each</th></tr></thead>
<tbody>
<tr><td>1+</td><td>—</td><td>${size.price}</td></tr>
{size.bulk_discounts.map((bd, i) => {
const discounted = (Number(size.price) * (1 - Number(bd.discount_value) / 100)).toFixed(2)
return (
<tr key={i}>
<td>{bd.min_quantity}+</td>
<td>{bd.discount_value}% off</td>
<td>${discounted}</td>
</tr>
)
})}
</tbody>
</table>
)
}
Bulk discounts are automatically applied when the customer's cart quantity meets the threshold. The max_bulk_discount field on product cards shows the best available discount.
Next Steps
- Discount Codes — Coupon-based discounts
- Product Variations & Sizes — Size structure