Checkout : Vat Zero Rate doesn't show

  • Posts: 177
  • Thank you received: 1
3 years 2 months ago #269777

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.

  • Posts: 24305
  • Thank you received: 3747
  • MODERATOR
3 years 2 months ago #269779

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 177
  • Thank you received: 1
3 years 2 months ago #269838

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.

  • Posts: 70141
  • Thank you received: 10500
  • MODERATOR
3 years 2 months ago #269840

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.

  • Posts: 177
  • Thank you received: 1
3 years 2 months ago #270016

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.

  • Posts: 177
  • Thank you received: 1
3 years 2 months ago #270024

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.

  • Posts: 70141
  • Thank you received: 10500
  • MODERATOR
3 years 2 months ago #270027

Hi,

You'll have to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php and add such 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:
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.

  • Posts: 177
  • Thank you received: 1
3 years 2 months ago #270068

Hi Nicolas,
Works perfectly.

How can i show it also in a email?

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

  • Posts: 24305
  • Thank you received: 3747
  • MODERATOR
3 years 2 months ago #270070

Hello,

In the emails, the code which display the total and taxes is :

	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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum