Solved

OSCommerce - calculate a discount on the total before taxes

Posted on 2007-11-19
2
717 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

734 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