<tr>
<td style="border-top:2px solid #B8B8B8;" colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_subtotal_title" style="border-top:2px solid #B8B8B8;" class="key">
<label>
<?php echo JText::_( 'SUBTOTAL' ); ?>
</label>
</td>
<td class="hikashop_order_subtotal_value" style="border-top:2px solid #B8B8B8;">
<?php
if($this->config->get('price_with_tax')){
echo $this->currencyHelper->format($this->order->order_subtotal,$this->order->order_currency_id);
}else{
echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id);
} ?>
</td>
</tr>
<?php
$taxes = $this->order->order_subtotal-$this->order->order_subtotal_no_vat+$this->order->order_shipping_tax-$this->order->order_discount_tax;
if(!empty($this->order->order_discount_code)){ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_coupon_title key">
<label>
<?php echo JText::_( 'HIKASHOP_COUPON' ); ?>
</label>
</td>
<td class="hikashop_order_coupon_value" >
<?php
if($this->config->get('price_with_tax')){
echo $this->currencyHelper->format($this->order->order_discount_price*-1.0,$this->order->order_currency_id);
}else{
echo $this->currencyHelper->format(($this->order->order_discount_price-@$this->order->order_discount_tax)*-1.0,$this->order->order_currency_id);
} ?>
</td>
</tr>
<?php }
if($taxes != 0){
if($this->config->get('detailed_tax_display') && !empty($this->order->order_tax_info)){
foreach($this->order->order_tax_info as $tax){ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_tax_title key">
<label>
<?php echo $tax->tax_namekey; ?>
</label>
</td>
<td class="hikashop_order_tax_value">
<?php echo $this->currencyHelper->format($tax->tax_amount,$this->order->order_currency_id); ?>
</td>
</tr>
<?php
}
}else{ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_tax_title key">
<label>
<?php echo JText::_( 'VAT' ); ?>
</label>
</td>
<td class="hikashop_order_tax_value">
<?php echo $this->currencyHelper->format($taxes,$this->order->order_currency_id); ?>
</td>
</tr>
<?php }
}
if(!empty($this->order->additional)) {
$exclude_additionnal = explode(',', $this->config->get('order_additional_hide', ''));
foreach($this->order->additional as $additional) {
if(in_array($additional->order_product_name, $exclude_additionnal)) continue;
?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_additionall_title key">
<label><?php
echo JText::_($additional->order_product_name);
?></label>
</td>
<td class="hikashop_order_additional_value"><?php
if(!empty($additional->order_product_price)) {
$additional->order_product_price = (float)$additional->order_product_price;
}
if(!empty($additional->order_product_price) || empty($additional->order_product_options)) {
if($config->get('price_with_tax')){
echo $this->currencyHelper->format($additional->order_product_price+@$additional->order_product_tax, $this->order->order_currency_id);
}else{
echo $this->currencyHelper->format($additional->order_product_price, $this->order->order_currency_id);
}
} else {
echo $additional->order_product_options;
}
?></td>
</tr>
<?php }
}
if(!empty($this->order->order_shipping_method)){ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_shipping_title key">
<label>
<?php echo JText::_( 'SHIPPING' ); ?>
</label>
</td>
<td class="hikashop_order_shipping_value" >
<?php
if($this->config->get('price_with_tax')){
echo $this->currencyHelper->format($this->order->order_shipping_price,$this->order->order_currency_id);
}else{
echo $this->currencyHelper->format($this->order->order_shipping_price-@$this->order->order_shipping_tax,$this->order->order_currency_id);
} ?>
</td>
</tr>
<?php }
if(!empty($this->order->order_payment_method) && $this->order->order_payment_price != 0){ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_payment_title key">
<label>
<?php echo JText::_( 'HIKASHOP_PAYMENT' ); ?>
</label>
</td>
<td class="hikashop_order_payment_value" >
<?php echo $this->currencyHelper->format($this->order->order_payment_price,$this->order->order_currency_id); ?>
</td>
</tr>
<?php } ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_total_title key">
<label>
<?php echo JText::_( 'HIKASHOP_TOTAL' ); ?>
</label>
</td>
<td class="hikashop_order_total_value" >
<?php
if($this->config->get('show_taxes') == 'both'){
}
else if($this->config->get('show_taxes') == 'with'){
}
else{
echo $this->currencyHelper->format($this->order->order_full_price,$this->order->order_currency_id);
}?>
</td>
</tr>
</tbody>
</table>
</fieldset>
</td>
</tr>