- Posts: 177
- Thank you received: 1
Checkout : Vat Zero Rate doesn't show
- andreasuriani
-
Topic Author
- Offline
Less
More
9 years 5 months ago #269777
by andreasuriani
Checkout : Vat Zero Rate doesn't show was created by andreasuriani
Hi There,
i have created 2 kind of Vat: 23% and 0% (free).
The issue is when the product has he VAT Free , Vat is not showing in the checkout.
I've tryed to follow this link but without success.
www.hikashop.com/forum/taxes/871674-display-zero-vat.html
How can i fix it?
Thanks in advance
Andrea
i have created 2 kind of Vat: 23% and 0% (free).
The issue is when the product has he VAT Free , Vat is not showing in the checkout.
I've tryed to follow this link but without success.
www.hikashop.com/forum/taxes/871674-display-zero-vat.html
How can i fix it?
Thanks in advance
Andrea
Please Log in or Create an account to join the conversation.
9 years 5 months ago #269779
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Checkout : Vat Zero Rate doesn't show
Hello,
When you create a thread in our forum ; please fill the form in order to provide us basis information like your HikaShop version number.
Regards,
When you create a thread in our forum ; please fill the form in order to provide us basis information like your HikaShop version number.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- andreasuriani
-
Topic Author
- Offline
Less
More
- Posts: 177
- Thank you received: 1
9 years 5 months ago #269838
by andreasuriani
Replied by andreasuriani on topic Checkout : Vat Zero Rate doesn't show
Sorry. By the way, i used to be use always the last version: 3.0.1
Please Log in or Create an account to join the conversation.
9 years 5 months ago #269840
by nicolas
Replied by nicolas on topic Checkout : Vat Zero Rate doesn't show
Hi,
The modifications talked about on the post www.hikashop.com/forum/taxes/871674-disp...zero-vat.html#171976 are for the legacy checkout. So if you have the "checkout legacy" setting turned on, the modification should still work with the 3.0.1.
Otherwise, you need to do the change in the file "show_block_cart".
The modification should still be pretty similar.
The modifications talked about on the post www.hikashop.com/forum/taxes/871674-disp...zero-vat.html#171976 are for the legacy checkout. So if you have the "checkout legacy" setting turned on, the modification should still work with the 3.0.1.
Otherwise, you need to do the change in the file "show_block_cart".
The modification should still be pretty similar.
Please Log in or Create an account to join the conversation.
- andreasuriani
-
Topic Author
- Offline
Less
More
- Posts: 177
- Thank you received: 1
9 years 5 months ago #270016
by andreasuriani
Replied by andreasuriani on topic Checkout : Vat Zero Rate doesn't show
Hi,
i don't know why but i made the same modification and now it works....
Thanks
a.
i don't know why but i made the same modification and now it works....
Thanks
a.
Please Log in or Create an account to join the conversation.
- andreasuriani
-
Topic Author
- Offline
Less
More
- Posts: 177
- Thank you received: 1
9 years 5 months ago #270024
by andreasuriani
Replied by andreasuriani on topic Checkout : Vat Zero Rate doesn't show
Sorry but... i forgot to ask you how to show this on the invoice...
So, i need to show on Invoice the Zero Tax...
I'm using PDF Attachment plugin.
A.
So, i need to show on Invoice the Zero Tax...
I'm using PDF Attachment plugin.
A.
Please Log in or Create an account to join the conversation.
9 years 5 months ago #270027
by nicolas
Replied by nicolas on topic Checkout : Vat Zero Rate doesn't show
Hi,
You'll have to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php and add such code:
after:
You'll have to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php and add such code:
Code:
else{
?>
<tr>
<td colspan="3" class="newarea">
<?php echo JText::_('TAXES'); ?>
</td>
<td class="price">
<?php
echo $currencyHelper->format(0,$order->order_currency_id);
?>
</td>
</tr>
<?php
}
Code:
if($taxes > 0){
if($config->get('detailed_tax_display') && !empty($order->order_tax_info)){
foreach($order->order_tax_info as $tax){ ?>
<tr>
<td colspan="3" class="newarea">
<?php echo $tax->tax_namekey; ?>
</td>
<td class="price">
<?php echo $currencyHelper->format($tax->tax_amount,$order->order_currency_id); ?>
</td>
</tr>
<?php
}
}else{ ?>
<tr>
<td colspan="3" class="newarea">
<?php echo JText::_( 'VAT' ); ?>
</td>
<td class="price">
<?php echo $currencyHelper->format($taxes,$order->order_currency_id); ?>
</td>
</tr>
<?php }
}
Please Log in or Create an account to join the conversation.
- andreasuriani
-
Topic Author
- Offline
Less
More
- Posts: 177
- Thank you received: 1
9 years 5 months ago #270068
by andreasuriani
Replied by andreasuriani on topic Checkout : Vat Zero Rate doesn't show
Hi Nicolas,
Works perfectly.
How can i show it also in a email?
Works perfectly.
How can i show it also in a email?
Please Log in or Create an account to join the conversation.
9 years 5 months ago #270070
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Checkout : Vat Zero Rate doesn't show
Hello,
In the emails, the code which display the total and taxes is :
In the second "if" you can add an entry in the cart footer array in order to display a line for "0" taxes.
Regards,
In the emails, the code which display the total and taxes is :
Code:
if($data->cart->full_total->prices[0]->price_value!=$data->cart->full_total->prices[0]->price_value_with_tax) {
if($config->get('detailed_tax_display') && !empty($data->cart->order_tax_info)) {
foreach($data->cart->order_tax_info as $tax) {
$cartFooters[] = array(
'NAME' => $tax->tax_namekey,
'VALUE' => $currencyHelper->format($tax->tax_amount,$data->cart->order_currency_id)
);
}
} else {
$cartFooters[] = array(
'NAME' => JText::_('ORDER_TOTAL_WITHOUT_VAT'),
'VALUE' => $currencyHelper->format($data->cart->full_total->prices[0]->price_value,$data->cart->order_currency_id)
);
}
$cartFooters[] = array(
'NAME' => JText::_('ORDER_TOTAL_WITH_VAT'),
'VALUE' => $currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->cart->order_currency_id)
);
} else {
$cartFooters[] = array(
'NAME' => JText::_('HIKASHOP_TOTAL'),
'VALUE' => $currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->cart->order_currency_id)
);
}
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.158 seconds