Oscommerce Price Sensitive Discount 2.4 mod issue

Here's the scenario:

1)include shipping = false

2)include tax = false

3)recalculate tax = true

Subtotal = $59.95

Discount % = 15

Tax = 7%

$od_amount = round($amount*10)/10*$od_pc/100; $od_amount = $od_amount + $tod_amount;

Now, what's happening in this scenario is the following:

Subtotal = 59.95

Discount = 9.63

Tax = 3.57

Total = 54.52

The discount should be $9.00 (.15*59.95) The tax is correctly calculated on $50.95 (59.95 - 9.00) The total is correct based upon subtracting $9 from the subtotal

However the problem is that it incorrectly displays $9.63 as the discount amount which might cause some problems. The customer will state that the total amount is incorrectly calculated.

The problem is that it's adding the $tod_amount to the $od_amount.

So, does anyone know how to fix this so that the $tod_amount is subtracted from the $od_amount in the below section of the script:.

$this->output[] = array('title' => $this->title . ':',

'text' => '-' . $currencies->format($od_amount), <-----------------

'value' => $od_amount);

The following was uncommented in the 2.4 version:

$od_amount = $od_amount + $tod_amount;

With it commented the result is :

Subtotal = 59.95

Discount = 9.00

Tax = 3.57

Total = 55.15

In this case then, the $tod_amount would need to be subtracted from the total.

Taidot: Linux, PHP

Näytä lisää: oscommerce price sensitive discount tax, price sensitive discount oscommerce, will price, 2 63 1, discount coupon subtracts shipping oscommerce, oscommerce rounding tax amount, oscommerce price discount, subtotal calculated oscommerce, price sensitive discount, oscommerce price problem, oscommerce include tax discount coupons, oscommerce discount amount, price sensitive discount dont work, oscommerce price sensitive discount, subtotal discount oscommerce, format price, price script, kagg, discount, php text array, state tax, price tax, issue linux, shipping discount, price based

Tietoa työnantajasta:
( 3 arvostelua ) Sarasota, United States

Projektin tunnus: #141655

Myönnetty käyttäjälle:


Quick Fix. See reviews for expertise on oscommerce. Thanks

$50 USD 0 päivässä
(215 Arvostelua)

4 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


hi PLZ see PMB for my work profiile. Thanks

$50 USD 0 päivässä
(123 arvostelua)

I offer over 30 years engineering experience, last 20 years heavy in custom software/firmware development. This is just classic core software code with which I am very familiar. But to resolve this I need to see more o Lisää

$75 USD 1 päivässä
(1 arvostelu)

Dear Sir I have 4 years experience in php,mysql,smarty,oscommerce,ajax,javascript. Oscommerce:-- [login to view URL] [login to view URL] [login to view URL] CRE Loaded:- [login to view URL] http Lisää

$40 USD 0 päivässä
(3 arvostelua)