Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Volume Discount w/ A Twist


Recommended Posts

Has anyone ran across a contib that will, or knows how to make one:

Look at order subtotal and if equals say $550.00 or more, it applies a 10% discount for only certain products in the users cart, and takes that discount off the subtotal.



widget A 1x250=$250.00 <- is allowed to be discounted (tlabs product)

widget B 2x50=$100.00 <- is allowed to be discounted (tlabs product)

widget C 2x100=$200.00 <- not allowed (some other manufacturer)


Subtotal $550.00 <-equals the min. for the discount

Discount(-)$35.00 <-based on 10% of products being allowed a discount.

Tax & ship calcs. after discount.

Total $515.00


I can add a field to the product database lets say VDISCOUNT_ALLOW and if it = 1 the product can be discounted and if = 2, no discount.


I just dont know how I would write the mod. to lookup the subtotal verify if it meets the criteria, if does do another calculation of the products that are allow a discount via the VDISCOUNT_ALlOW field, and place the Discount amount after the Subtotal.


I'm trying to make this clear and easy to understand, if anyone needs more info, just ask :wink: Any help would be greatly appreiciated, Im not the greatest php programer, I can usually figure it out but im just not sure on this one. thx, Chris

Chris Guth

Seniors Living Healthy


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...