Customized Volume Discount Plugin for WooCommerce

Job ID: 39260501

Budget: €30 – €250 EUR

Custom Quantity-Based Discount per Dimension Group (WooCommerce)
Project Context:

We are running a WooCommerce site with custom-made products where customers enter their own dimensions using the plugin “Measurement Price Calculator” by SkyVerge. Pricing is calculated dynamically based on those dimensions (e.g., per m²).

We want to introduce volume discounts (tiered pricing) — applied independently to each group of items with identical dimensions.

? Goal:
Apply quantity-based discounts per product, per group of identical dimensions.

✅ Examples:
5 items of 40×30 cm (Product A) → 5% discount

2 items of 50×30 cm (Product A) → 2% discount

Other products not listed in the backoffice settings → no discount

Each group gets its own discount depending on its quantity and only if the product is included in the rule set.

? Functional Requirements:
Detect width and height from Measurement Price Calculator input fields.

Group cart items by product ID + identical dimensions.

For each group:

Apply the correct tiered discount based on quantity.

Update the unit price accordingly.

Use these default discount tiers:

Quantity Discount
1 0%
2 2%
3 3%
5 5%
10 10%
20 15%
50 20%
100 25%
1000 30%
?️ Admin Panel Requirements:
Create a dedicated settings page (e.g., under WooCommerce > Quantity Discounts) to allow:

Managing discount tiers:

Editable quantity breakpoints

Editable percentage values per tier

Selecting applicable products:

Interface to input product IDs manually

OR product search field / selector UI (recommended)

Only products listed here should be affected by the discount logic

Save & manage settings without requiring any code editing

? Cart & Checkout Behavior:
In the cart:

Group products with the same ID and identical dimensions

Apply discount to each eligible group separately

Update unit prices and totals

Show clear labels or notices when discounts are active

?️ Product Page Display:
Show a tiered pricing table on the product page, but only for eligible products

The table should reflect:

Quantity breakpoints

Corresponding discounts

Display location: below the price or near the quantity selector

Styled to match WooCommerce templates

? Technical Notes:
Dimensions stored in cart item meta (e.g. measurement_needed_width, measurement_needed_height)

Grouping should compare dimensions with 1–2 decimals of precision

Logic must work with:

Custom measurements

AJAX mini-cart

Quantity updates in cart

Deliverable should be a modular plugin for maintainability

✅ Bonus (Optional):
Add a notice:
“Get up to 30% off by ordering multiple identical pieces!”

Visual indicators in cart lines showing active discounts

Let me know if you’d like a visual mockup of the admin panel, or if your dev wants a plugin boilerplate to start with.