<?php
$oldTaxSetting = $this->params->set('price_with_tax');
$this->params->set('price_with_tax',0);
?>
<tfoot>
<tr <?php if(HIKASHOP_RESPONSIVE){ echo 'class="hidden-phone"'; } ?>>
<td colspan="<?php echo $row_count; ?>">
<hr />
</td>
</tr>
<?php
if(HIKASHOP_RESPONSIVE){
$td = '';
if($this->params->get('show_cart_image'))
$td = '<td colspan="3" class="hidden-phone hikashop_cart_empty_footer"></td>';
else
$td .= '<td colspan="2" class="hidden-phone hikashop_cart_empty_footer"></td>';
}else{
$td = '';
if($this->params->get('show_cart_image'))
$td .= '<td colspan="3" class="hikashop_cart_empty_footer"></td>';
else
$td .= '<td colspan="2" class="hikashop_cart_empty_footer"></td>';
}
$taxes = round($this->full_total->prices[0]->price_value_with_tax-$this->full_total->prices[0]->price_value,$this->currencyHelper->getRounding($this->full_total->prices[0]->price_currency_id));
if(!empty($this->coupon) || !empty($this->shipping) || !empty($this->additional) || bccomp($taxes,0,5)) {
?>
<tr>
<?php echo $td; ?>
<td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title">
<?php echo JText::_('SUBTOTAL'); ?>
</td>
<td class="hikashop_cart_subtotal_value">
<?php
$this->row = $this->total;
echo $this->loadTemplate();
?>
</td>
</tr>
<?php
}
if(!empty($this->coupon)) {
?>
<tr>
<?php echo $td; ?>
<td id="hikashop_checkout_cart_coupon_title" class="hikashop_cart_coupon_title hikashop_cart_title">
<?php echo JText::_('HIKASHOP_COUPON'); ?>
</td>
<td class="hikashop_cart_coupon_value" >
<span class="hikashop_checkout_cart_coupon">
<?php
if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax')){
echo $this->currencyHelper->format(@$this->coupon->discount_value_without_tax*-1,@$this->coupon->discount_currency_id);
}else{
echo $this->currencyHelper->format(@$this->coupon->discount_value*-1,@$this->coupon->discount_currency_id);
}
?>
</span>
</td>
</tr>
<?php
}
if(!empty($this->shipping)) {
?>
<tr>
<?php echo $td; ?>
<td id="hikashop_checkout_cart_shipping_title" class="hikashop_cart_shipping_title hikashop_cart_title">
<?php echo JText::_('HIKASHOP_SHIPPING'); ?>
</td>
<td class="hikashop_cart_shipping_value" >
<span class="hikashop_checkout_cart_shipping">
<?php
if(isset($this->value)) {
echo $this->value;
} else {
$shipping_price = null;
foreach($this->shipping as $shipping) {
if(!isset($shipping->shipping_price) && isset($shipping->shipping_price_with_tax) ) {
$shipping->shipping_price = $shipping->shipping_price_with_tax;
}
if(isset($shipping->shipping_price)) {
if($shipping_price === null)
$shipping_price = 0.0;
if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($shipping->shipping_price_with_tax)) {
$shipping_price += $shipping->shipping_price;
} else {
$shipping_price += $shipping->shipping_price_with_tax;
}
}
}
if($shipping_price !== null) {
echo $this->currencyHelper->format($shipping_price, $this->full_total->prices[0]->price_currency_id);
}
}
?>
</span>
</td>
</tr>
<?php
}
if(!empty($this->additional)) {
$exclude_additionnal = explode(',', $this->config->get('order_additional_hide', ''));
foreach($this->additional as $k => $additional) {
if(in_array($additional->name, $exclude_additionnal))
continue;
?>
<tr id="hikashop_checkout_cart_additional_<?php echo str_replace(' ','_',$k); ?>_line" >
<?php echo $td; ?>
<td id="hikashop_checkout_cart_additional_<?php echo str_replace(' ','_',$k); ?>_title" class="hikashop_cart_additional_title hikashop_cart_title"><?php
echo JText::_($additional->name);
?></td>
<td class="hikashop_cart_shipping_value" >
<span class="hikashop_checkout_cart_shipping">
<?php
if(!empty($additional->price_value) || empty($additional->value)) {
if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax')){
echo $this->currencyHelper->format(@$additional->price_value,$additional->price_currency_id);
}else{
echo $this->currencyHelper->format(@$additional->price_value_with_tax,$additional->price_currency_id);
}
} else {
echo $additional->value;
}
?>
</span>
</td>
</tr>
<?php
}
}
if(bccomp($taxes,0,5)){
if($this->config->get('detailed_tax_display') && isset($this->full_total->prices[0]->taxes)) {
foreach($this->full_total->prices[0]->taxes as $tax) {
?>
<tr>
<?php echo $td; ?>
<td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
<?php echo $tax->tax_namekey; ?>
</td>
<td class="hikashop_cart_tax_value">
<span class="hikashop_checkout_cart_taxes">
<?php
echo $this->currencyHelper->format($tax->tax_amount,$this->full_total->prices[0]->price_currency_id);
?>
</span>
</td>
</tr>
<?php
}
} else {
?>
<tr>
<?php echo $td; ?>
<td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
<?php echo JText::_('TAXES'); ?>
</td>
<td class="hikashop_cart_tax_value">
<span class="hikashop_checkout_cart_taxes">
<?php
echo $this->currencyHelper->format($taxes,$this->full_total->prices[0]->price_currency_id);
?>
</span>
</td>
</tr>
<?php
}
}
if(!empty($this->payment) && $this->payment->payment_price != 0) {
?>
<tr>
<?php echo $td; ?>
<td id="hikashop_checkout_cart_payment_title" class="hikashop_cart_payment_title hikashop_cart_title">
<?php echo JText::_('HIKASHOP_PAYMENT'); ?>
</td>
<td class="hikashop_cart_payment_value">
<span class="hikashop_checkout_cart_payment">
<?php
if(!isset($this->payment->payment_price) && isset($this->payment->payment_price_with_tax) ) {
if(isset($this->value)) {
echo $this->value;
} else {
$this->payment->payment_price = 0.0;
$this->payment->payment_price_with_tax = 0.0;
}
}
if(isset($this->payment->payment_price)) {
if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($this->payment->payment_price_with_tax) ){
echo $this->currencyHelper->format(@$this->payment->payment_price,$this->full_total->prices[0]->price_currency_id);
}else{
echo $this->currencyHelper->format(@$this->payment->payment_price_with_tax,$this->full_total->prices[0]->price_currency_id);
}
}
?>
</span>
</td>
</tr>
<?php } ?>
<tr>
<?php echo $td; ?>
<td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title">
<?php echo JText::_('HIKASHOP_TOTAL'); ?>
</td>
<td class="hikashop_cart_total_value">
<span class="hikashop_checkout_cart_final_total">
<?php
echo $this->currencyHelper->format($this->full_total->prices[0]->price_value_with_tax,$this->full_total->prices[0]->price_currency_id);
?>
</span>
</td>
</tr>
</tfoot>
<?php
$this->params->set('price_with_tax',$oldTaxSetting );
?>
This is the code.