$work{$col} = $product->$col() unless exists $work{$col};
}
my ($price, $tier) = $product->price(user => scalar $req->siteuser);
- $work{price} = $price;
- $work{tier_id} = $tier ? $tier->id : undef;
- $work{extended_retailPrice} = $work{units} * $work{price};
- $work{extended_gst} = $work{units} * $work{gst};
- $work{extended_wholesale} = $work{units} * $work{wholesalePrice};
+ $work{price} = $item->price;
+ $work{tier_id} = $item->tier_id;
+ $work{extended_retailPrice} = $item->extended_retailPrice;
+ $work{extended_gst} = $item->extended_gst;
+ $work{extended_wholesale} = $item->extended_wholesale;
if ($cart->coupon_active) {
$work{product_discount} = $item->product_discount;
$work{product_discount_units} = $item->product_discount_units;