Re: List price & VAT

Posts: 84
Joined: 02/14/2008
Bug FinderGetting busy with the Ubercode.Internationalizationizer

So I took a quick look into it. Sorry, I wasn't clear enough. Not replace, but add the same procedure for List price. You don't want to loose the tax for Sell price. And you need just a) and b).

So after the change line 23-26 look like this:

<?php
$list_price
= $node->list_price / (1 + _uc_product_taxes_calculate($node));
$node->list_price = round($list_price, 2);
$sell_price = $node->sell_price / (1 + _uc_product_taxes_calculate($node));
$node->sell_price = round($sell_price, 2);
?>

line 30-33 will be new:

<?php
$list_price
= $node->list_price + ($node->list_price * _uc_product_taxes_calculate($node));
$node->list_price = round($list_price, 2);
$sell_price = $node->sell_price + ($node->sell_price * _uc_product_taxes_calculate($node));
$node->sell_price = round($sell_price, 2);
?>

c) not, display price is the sell price, so this stays
d) also not

Try it, I am quite sure this two chances where everything you need.

Best regards Al

Sell price striked through when less than list price By: gabble (9 replies) Wed, 04/23/2008 - 12:03