Re: List price & VAT

Posts: 19
Joined: 04/08/2008

Just to be sure I got it right...

a) at line 23 I have to replace:

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

with:
$sell_price = $node->list_price / (1 + _uc_product_taxes_calculate($node));
$node->list_price = round($sell_price, 2);

b) at line 28 I have to replace:

$sell_price = $node->sell_price + ($node->sell_price * _uc_product_taxes_calculate($node));
$node->sell_price = round($sell_price, 2);

with:
$sell_price = $node->list_price + ($node->list_price * _uc_product_taxes_calculate($node));
$node->list_price = round($sell_price, 2);

c) at line 63:
$display_price = ', '. uc_currency_format($node->sell_price + $option->price);
with:
$display_price = ', '. uc_currency_format($node->list_price + $option->price);

d) at line 113:
$item->price = $product->sell_price;
with:
$item->price = $product->list_price;

Is it all right??

Thanks for your time, Al!
gabble

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