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.

Habilidades: Linux, PHP

Veja mais: 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

Acerca do Empregador:
( 3 comentários ) Sarasota, United States

ID do Projeto: #141655

Concedido a:


Quick Fix. See reviews for expertise on oscommerce. Thanks

$50 USD em 0 dias
(215 Comentários)

4 freelancers estão ofertando em média $54 para esse trabalho


hi PLZ see PMB for my work profiile. Thanks

$50 USD in 0 dias
(123 Comentários)

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 Mais

$75 USD em 1 dia
(1 Comentário)

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 Mais

$40 USD in 0 dias
(3 Comentários)