About Club osCommerce

Showcasing osCommerce…the good, the bad and the ugly!

Follow osc_pro on Twitter

Coupons with Category Exclusions

Written By Gary on Jan 11 2010 · Comments (0) Follow osc_pro on Twitter

I had a client who really needed the possibility of excluding some products from the coupon discount system. After some thinking we came up with a way to exclude whole categories from being discounted. I'll illustrate with a simple example;

Category Coffee is excluded from discounts.
Category Tea is NOT excluded.

We are using a 50% coupon, and the buyers buys;

Coffee Beans @ $50 per pack and Tea Bags @ $50 per pack

So, the shopping cart looks like this (exactly as normal):

I then insert the 50% coupon code, and the view changes to this:

As you can see the coupon has deducted 50% of the allowed item, and nothing from the disallowed item! In addition, you can see that the shopping cart infobox also shows the correct deduction!

Carry on through the checkout:

You can see that the order_totals are correct; $100 (subtotal) LESS $25 (50% of the allowed product) PLUS $5 (shipping) == $80 to pay

And if we now look at the Admin area for the order:

We can see the correct order_totals here too.

This is an extensive overhaul of the coupons system and is in Beta Testing right now.


Buy Gary A Beer?
Buying me a "beer" helps me to keep my contributions updated and keep this blog alive - and you get a link from my homepage to your site. Cheers!


No Comments

No comments yet.

Leave a comment

RSS feed for comments on this post · TrackBack URL

Hot 100 osCommerce Shops

View the osCommerce HOT 100These are the best looking, most exceptional osCommerce Stores as voted for by you.

New to osCommerce - get inspiration from these beautiful shops. Reckon your site has what it takes to become a member of the HOT 100? Submit it!