diff --git a/modules/blockcart/blockcart.php b/modules/blockcart/blockcart.php index 2ad83363e..90a5b9419 100644 --- a/modules/blockcart/blockcart.php +++ b/modules/blockcart/blockcart.php @@ -129,7 +129,7 @@ class Blockcart extends Module $wrappingCost = (float) ($params['cart']->getOrderTotal($useTax, Cart::ONLY_WRAPPING)); $totalToPay = $params['cart']->getOrderTotal($useTax); $tax_cost = 0; - if ($showTax) { + if ($useTax && $showTax) { $totalToPayWithoutTaxes = $params['cart']->getOrderTotal(false); $tax_cost = Tools::displayPrice($totalToPay - $totalToPayWithoutTaxes, $currency); } @@ -206,6 +206,7 @@ class Blockcart extends Module 'shipping_cost_float' => $shipping_cost_float, 'show_wrapping' => $wrappingCost > 0 ? true : false, 'show_tax' => $showTax, + 'use_tax' => $useTax, 'tax_cost' => $tax_cost, 'wrapping_cost' => Tools::displayPrice($wrappingCost, $currency), 'product_total' => Tools::displayPrice($params['cart']->getOrderTotal($useTax, Cart::ONLY_PRODUCTS), $currency), diff --git a/modules/blockcart/blockcart.tpl b/modules/blockcart/blockcart.tpl index 6192288d3..8062dd5e0 100644 --- a/modules/blockcart/blockcart.tpl +++ b/modules/blockcart/blockcart.tpl @@ -211,7 +211,7 @@ {/if} --> - {if $show_tax && isset($tax_cost)} + {if $show_tax && $use_tax}
{$tax_cost} {l s='Tax' mod='blockcart'} diff --git a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl index 7a172eb5a..1e8e948fd 100644 --- a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl +++ b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl @@ -211,7 +211,7 @@
{/if} --> - {if $show_tax && isset($tax_cost)} + {if $show_tax && $use_tax}
{$tax_cost} {l s='Tax' mod='blockcart'}