By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,833 Members | 2,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,833 IT Pros & Developers. It's quick & easy.

REQ: oscommerce promo code module

P: n/a
OK, here's one of the rare times where I call out to all of you. ;)

I need to implement a promotional discount code module into osCommerce
2.2 Milestone 2. I've never created an OSC module (because I've never
used it before this project), so I need some direction.

The things I need to do:

* add a promo code field to the Payment Information screen
(checkout_payment.php)

* query the database to lookup the code and calculate it's value (may be
percentage or dollar amount - I already have functions for this)

* apply the discount value to the order

What I need to know is what files do I need to edit (if any) so that
when you "install" the module via OSC admin that the fields and code are
activated?

I am sure that I can figure out the rest from there. Any help is
appreciated, especially from anyone with OSC module creation experience!

TIA

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Justin Koivisto <sp**@koivi.com> wrote in message news:<4b*****************@news7.onvoy.net>...
OK, here's one of the rare times where I call out to all of you. ;)

I need to implement a promotional discount code module into osCommerce
2.2 Milestone 2. I've never created an OSC module (because I've never
used it before this project), so I need some direction.


<snip>

FWIW, here is some documentation on "modules"
<http://wiki.oscommerce.com/apiModulesShipping> (p.s.: I didn't work
with that, but sometimes ago I was digging on that)

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

P: n/a
R. Rajesh Jeba Anbiah wrote:
Justin Koivisto <sp**@koivi.com> wrote in message news:<4b*****************@news7.onvoy.net>...
OK, here's one of the rare times where I call out to all of you. ;)

I need to implement a promotional discount code module into osCommerce
2.2 Milestone 2. I've never created an OSC module (because I've never
used it before this project), so I need some direction.


<snip>

FWIW, here is some documentation on "modules"
<http://wiki.oscommerce.com/apiModulesShipping> (p.s.: I didn't work
with that, but sometimes ago I was digging on that)


Thanks for the link. However, what I need to make is an Order_Total
module, not a hipping one. On the other hand, I noticed last night that
I didn't search through one of the contribution categories. I pushed my
way through last night, and I think I found one that I can use or modify.

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Jul 17 '05 #3

P: n/a
Justin Koivisto wrote:
I need to implement a promotional discount code module into osCommerce
2.2 Milestone 2. I've never created an OSC module (because I've never
used it before this project), so I need some direction.

The things I need to do:

* add a promo code field to the Payment Information screen
(checkout_payment.php)

* query the database to lookup the code and calculate it's value (may be
percentage or dollar amount - I already have functions for this)

* apply the discount value to the order


OK, for some reason the module called "Credit Class & Gift Voucher"
didn't get my attention when I was searching the OSC contribs. It does
exactly what I needed.

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.