Tax value is not displayed on checkout step 4

From AVACTIS : Ecommerce Shopping Cart Software Wiki
Jump to: navigation, search

If the tax value is empty on the step 4 of the checkout replace the following part of code:

default:
break;
}
foreach ($tax['TaxSubtotalAmountView'] as $taxView)
{
$this->_Tax_Item['Local_TaxName'] = prepareHTMLDisplay($taxView['view']);

with this one:

default:
break;
}
$lastPlacedOrderID = modApiFunc('Checkout', 'getLastPlacedOrderID');
if ($lastPlacedOrderID !== NULL)
{
$oi = modApiFunc('Checkout', 'getOrderInfo', $lastPlacedOrderID,
modApiFunc('Localization',
'whichCurrencyToDisplayOrderIn',
$lastPlacedOrderID));
$tax['TaxSubtotalAmountView'] = array();
foreach($oi['Price']['tax_dops'] as $tax_info)
$tax['TaxSubtotalAmountView'][] = array(
'view' => preg_replace("/:$/", , $tax_info["name"]),
'value' => $tax_info['value']
);
}
foreach ($tax['TaxSubtotalAmountView'] as $taxView)
{
$this->_Tax_Item['Local_TaxName'] = prepareHTMLDisplay($taxView['view']);


in the "avactis-system/modules/checkout/views/checkout-order-cz.php" file.