Solved

OSCommerce - calculate a discount on the total before taxes

Posted on 2007-11-19
2
712 Views
Last Modified: 2013-11-18
Hi all,
I am very new at OSCommerce and can not figure out which file(s) need(s) to be modified so that a 10% discount is calculated on the total before taxes and not on the total after taxes as it is on my current install. I thought this would be an easy task and tried to locate where the calculation is done in order.php, order_total.php or the files under modules/order_total but no success. I would be extremelly grateful if someone could give me some pointers as this needs to be fixed urgently.

Thank you for any help or ideas,
Freddie
0
Comment
Question by:fdran
2 Comments
 
LVL 18

Accepted Solution

by:
Mark Gilbert earned 500 total points
ID: 20312317
Look for the coupon code component that is freely available.  http://addons.oscommerce.com/info/4269  You could create a coupon code and then use a hidden field to input it at order time.  Additionally look under the modules > order totals and sort your discount in that area if you already use a discount one.  Hope this helps.
0
 

Author Comment

by:fdran
ID: 20316559
Installing the module provided the solution I was after.
Thank you very much for the quick response.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question