From 3166573aa958afce1151e0988535e5fff3a97f2e Mon Sep 17 00:00:00 2001 From: PrestaEdit Date: Sat, 6 Jul 2013 13:50:38 +0200 Subject: [PATCH] [-] Class: PaymentModule / Be sure to have the right "TaxCalculationMethod" --- classes/PaymentModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 561881c55..acd3c1936 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -386,7 +386,7 @@ abstract class PaymentModuleCore extends Module ' '.$product['reference'].' '.$product['name'].(isset($product['attributes']) ? ' - '.$product['attributes'] : '').' - '.Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($price, 2) : $price_wt, $this->context->currency, false).' + '.Tools::displayPrice(Product::getTaxCalculationMethod((int)$this->context->customer->id) == PS_TAX_EXC ? Tools::ps_round($price, 2) : $price_wt, $this->context->currency, false).' '.((int)$product['cart_quantity'] - $customization_quantity).' '.Tools::displayPrice(((int)$product['cart_quantity'] - $customization_quantity) * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($price, 2) : $price_wt), $this->context->currency, false).' ';