473,815 Members | 3,653 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

REQ: oscommerce promo code module

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_payme nt.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
3 4411
Justin Koivisto <sp**@koivi.com > wrote in message news:<4b******* **********@news 7.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/apiModulesShipp ing> (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
R. Rajesh Jeba Anbiah wrote:
Justin Koivisto <sp**@koivi.com > wrote in message news:<4b******* **********@news 7.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/apiModulesShipp ing> (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
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_payme nt.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3670
by: Chris Hope | last post by:
Anyone know of any decent PHP/MySQL OSS ecommerce packages other than osCommerce and ZenCart? From what I've seen of ZenCart it just appears to be a fork of osCommerce and having now set a site up with osCommerce I have seen what a mess it is. It's great if you're happy just using the default layout but I wanted to use a nice customised design and hacking it into osCommerce has been too much hard work. If there isn't much else around...
2
5325
by: Angie | last post by:
Hello everybody, I have an osCommerce shopping cart on my site, which is an open-source product that uses php. I'm very new to php. I also have an online scheduling application that I outsourced to a third party, which resides on a different server. I asked my scheduling provider if there was anyway I could use my osCommerce php registration for thier registration so I could avoid having visitors to the site register and sign-in twice,...
0
1657
by: JStrummer | last post by:
Does anyone know if oscommerce has a module to support Verisign's Payflow Pro? I downloaded the one listed as "pro" here http://www.oscommerce.com/community/contributions,167/category,1/search,verisign], and the documentation talks only about Payflow Link. Has anyone used this module? Does it work with Payflow Pro as well? If anyone knows for sure that oscommerce doesnt' work with Payflow Pro, could you point me to other free...
13
2848
by: Matthew Crouch | last post by:
Okay, I've fiddled with this and I'm not passing judgment. If this application is great and there's just something I don't know, I'd love to learn. Item: Customizations (other than simple layout/color stuff) seem to be really hairy. If I want to add a field to the customer info I collect, I have to hand hack numerous scripts Item: there is a catalog/includes/configure.php that can be overridden by
2
6125
by: John F Dutcher | last post by:
Can anyone comment on why the code shown in the Python error is in some way incorrect...or is there a problem with Python on my hoster's site ?? The highlites don't seem to show here...but line #80 and line # 38 are the first line offenders. --> --> -->
6
2506
by: Steven Kalcevich | last post by:
Hi all. I am working on finishing an oscommerce based site and need some help. One page is listing in 1 column 6 down, I wish to have a layout of 4 across and 5 down. When there is more then 20 items you can press next to go to page 2 and so on... The page I am talking about is here http://www.philcos.com/catalog/products_new_week.php
4
2466
by: opensourcearts | last post by:
Hello all, I am working on an application that is basically a bridge between oscommerce and gallery2 software, with some other functionality. It will allow users to port all of their media from gallery2 into oscommrce, complete with rights definitions and watermarking. I have spent a lot of time on this application, and I am thinking of selling it as part of a bundled package with creloaded and gallery2.
0
1356
by: Kshipra | last post by:
In this era of growing Internet usage, e-commerce has started to grab a big share of the market. The title helps the readers understand how they can earn their share of money from the growing field, by offering an indepth information on how to use, build and maintain a good e-commerce web site. Who this book is written for? This book is written for anyone who:
1
6637
by: 2005.ravikumar | last post by:
Hello sir How to create Oscommerce admin login? Please give me sample code.
0
9735
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10408
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10426
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7686
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5708
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.