Product Discount By Product weight

Hi. I am looking for an App that could apply a discount to certain products based on there weight. So a discount could auto applied when the customer orders a certain amount of weight.

Any suggestions?

Thanks

Hi @FRS-Roofing , can you tell us how the weights are set on the products? Are they defined as separate variants or metafields?

Hi. These will be separate variants.

You should be able to apply discounts based on minimum purchase requirements. Would that work in your case?

Hi. There are eight products in this range and each has around forty variants. The weight varies with each variant. I do not know what combination of these customers may order. What i need is if a customer orders between 0 -249kg they pay the screen price, 250 - 350kg thet get a dsicounted price and 350kg + a further discounted price.

Do you mind showing a listing of one of these products? If the weights are set up as different variants, is there also a metafield on the products that store the weight as a number? I’m trying to see if there is way to add up the weights for the discount calculation.

Hi FRS-Roofing,

Are you on Shopify Plus? You could consider building a custom app for this using the Product Discount Functions API.

The ProductVariant object has weight and weightUnit properties you can query. You can add up the total weights of items in the cart, compare the sum to a known value, and then apply a discount if the weight threshold is reached.

https://shopify.dev/docs/api/functions/reference/product-discounts/graphql/common-objects/productvariant

Best,

Tobe