Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

buy category product, get disc on cat. b product


milehightech

Recommended Posts

Posted

I've looked in the contributions and done some searches in the forum, but haven't found anything on this.

 

1. Buy any product in category A (like books), and get a 10% discount on all products in category B (like CDs).

 

2. BOGO (buy one get one)--buy any product and get another item free or at a discount.

 

I know this can be custom coded but I'm just getting started with php and can be very dangerous!

 

Has anybody done this? In which file would I place custom code to do this sort of discounting?

 

Thanks!

Posted

Hi,

 

Have you tried this search in the contributions:

 

http://www.oscommerce.com/community?contri...nt&category=all

 

edit: Just reading your post a few times, this isn't really a discount is it, more of how a credit note works, or a voucher type system. That is, you are not _really_ giving discounts on the products being sold, but then giving the customer an accrual of a discount on a future product they may buy ??

 

Peter

Posted

This is not a discount on future orders--it is designed to get people to buy more things on their current purchase. The discount is based on what is in the cart, and ultimately purchased. It is discounts based on the items in an order (that is, items in the shopping cart)

 

So, if they put a book (or 5 books) in their cart, they pay regular price on the book(s). But if they buy a CD at the same time, then they get 10% off all of the books they are buying.

 

(Actually, they have to buy something from a category of high-priced items to get the discount on the books.)

 

The other example is something like-buy 2 CDs and get one free. They have to put 3 cds in their cart, but the total cost is only 2 cds.

 

I did search on discounts, but not on discount. Everything I saw was related to discounts by customers or groups. I just tried this search, and Quantity Price Breaks per Product is similar but not quite it. I'll look at the code for that and for some of the other contributions and see if I can get some ideas.

Posted

Hi,

 

Okay, so you may want to add a Javascript popup, or invent some other means of informing them that they now have a discount on product B, because they bought 'n' items of product A. Or, word the description on the products they are buying (bodly, they have to see it), of various discounts.

 

Or, ...you keep a check on what they are buying (obviously), and then if they buy a book (category A), then all you may need is to add an option/select dropdown box , a flashing animation beside it to get their attention, and the dropdown box has the discounts on the CD's ??

 

The dropdown box would be empty on form initialisation, then just use some JS to add any appropriate discounts to the select/options.

 

Peter

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...