Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Items discounted, Items Not


Recommended Posts

I am using the Quantity discount module to apply discounts for customers who buy more than one item at a time.

However, the shop owner also sells items which are never discounted:

tickets to shows and workshops.


However the module applies the discount to the total purchase price, and bases it on the total number of items.


I need a way to exclude these items. I have configured them as having a weight of zero so no shipping is charged, I think this could also be used as an identifier to create a $discount_items numberwhcih indicates the number of items in the cart that DO take the discount, and lso a $discount_subtotal which is the portion of the order subtotal to which the dicount will be applied.

Basically, if the item has no wieght, it is excluded from the discount.


Unfortunately, I am new to PHP and having trouble getting this to work. Please help.

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...