Zen Cart Logo
Forums / General Questions / How can I give a discount after purchasing an item?

How can I give a discount after purchasing an item?

Views: 601

Results 1 to 3 of 3
30 Jun 2012, 8:44 AM
#1
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

How can I give a discount after purchasing an item?

I would like to give the user the option to buy a video. However, they can choose to download the video for $10 (and watch it for a limited time, like 30 days), or buy a DVD for $25. What I'd like to do is that if they buy the download for $10, they can then buy the DVD for $15 (the difference in price) if they buy it within the 30 day limited time.

Is this possible, and how?

Thanks,
BP

30 Jun 2012, 2:06 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: How can I give a discount after purchasing an item?

yeah, it is possible but is not straight forward and would involve doing some coding. So, it depends on how much coding you can do yourself or if you just want to pay someone to make it so.

Basically, one way of doing it would be to create a new order total module. Like the discount module. It would scan the order for the dvd and if it found it would then scan the customers previous orders for the download. If it found the download then it would apply a discount of $10 to the order.

There would be other ways of approaching it too but this would be quite self-contained and wouldn't involve hacking existing files. The coding is not particularly complex but is much too much to go into on a forum post, to be honest.

30 Jun 2012, 4:56 PM
#3
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: How can I give a discount after purchasing an item?

Ok, thanks. It's good to know there's no 'easy' and 'straight' way. I'm not worried about getting my hands dirty with a little code. To not make things overly complex, I might just give a discount code upon purchase of the video. I'll look into it, though.