Skip to main content

Checkout : Vat Zero Rate doesn't show

9 years 5 months ago #269777 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

Please Log in or Create an account to join the conversation.

9 years 5 months ago #269779 by Jerome
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,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

9 years 5 months ago #269838 by andreasuriani
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
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.

Please Log in or Create an account to join the conversation.

9 years 5 months ago #270016 by andreasuriani
Hi,
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.

9 years 5 months ago #270024 by andreasuriani
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.

Please Log in or Create an account to join the conversation.

9 years 5 months ago #270027 by nicolas
Hi,

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 }
after:
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.

9 years 5 months ago #270068 by andreasuriani
Hi Nicolas,
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
Hello,

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) ); }
In the second "if" you can add an entry in the cart footer array in order to display a line for "0" taxes.

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
Powered by Kunena Forum