Em Andamento

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 = $[url removed, login to view]

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 = [url removed, login to view]

Discount = [url removed, login to view]

Tax = [url removed, login to view]

Total = [url removed, login to view]

The discount should be $[url removed, login to view] (.15*[url removed, login to view]) The tax is correctly calculated on $[url removed, login to view] ([url removed, login to view] - [url removed, login to view]) The total is correct based upon subtracting $9 from the subtotal

However the problem is that it incorrectly displays $[url removed, login to view] 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 = [url removed, login to view]

Discount = [url removed, login to view]

Tax = [url removed, login to view]

Total = [url removed, login to view]

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

Habilidades: Linux, PHP

Ver mais: price sensitive discount oscommerce, will price, oscommerce rounding tax amount, oscommerce price discount, subtotal calculated oscommerce, price sensitive discount, oscommerce price problem, oscommerce discount amount, 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, 4, sensitive, price script oscommerce, php tax, discount shipping

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

ID do Projeto: #141655

Premiar a:

kagg

Quick Fix. See reviews for expertise on oscommerce. Thanks

$50 USD em 0 dias
(215 Avaliações)
7.9

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

abstechnosoft

hi PLZ see PMB for my work profiile. Thanks

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

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)
2.8
infooscommerce

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

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