Hide vat in cart on checkout

  • Posts: 25
  • Thank you received: 0
3 years 2 months ago #269222

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.36
-- Browser(s) name and version -- : firefox

Hi,
i want to hide vat from cart on checkout, i set the tax box in global configuration like the image in attachment, but the system always shows the tax.
Can you help me please?

thank you in advance.

Attachments:

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

  • Posts: 70149
  • Thank you received: 10504
  • MODERATOR
3 years 2 months ago #269230

Hi,

There is no option to hide that row.
There are several ways to do it:
- if you don't want VAT at all, then you could just disable your tax rules in the menu System>Taxes.
- you can use the CSS property display:none to hide that area:
www.hikashop.com/support/documentation/1...ize-the-display.html
- You could also edit the show_block_cart view file to remove the code displaying them.

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

  • Posts: 25
  • Thank you received: 0
3 years 2 months ago #269377

ok, thank you Nicolas!

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

  • Posts: 107
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
3 years 2 months ago #269611

hello Nicolas,

I would also like to hide the VAT on the checkout process by removing the code displaying it via
checkout / show_block_cart.php.

Could you please tell me which code that is?

regards,
Joyce

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

  • Posts: 70149
  • Thank you received: 10504
  • MODERATOR
3 years 2 months ago #269614

Hi,

It's that code:

		if($taxes > 0){
			if($this->config->get('detailed_tax_display') && isset($cart->full_total->prices[0]->taxes)) {
				foreach($cart->full_total->prices[0]->taxes as $tax) {
?>
		<tr>
			<td colspan="<?php echo $row_count - 2; ?>" class="hikashop_cart_empty_footer"></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" data-title="<?php echo $tax->tax_namekey; ?>">
				<span class="hikashop_checkout_cart_taxes"><?php
					echo $this->currencyClass->format($tax->tax_amount, $cart->full_total->prices[0]->price_currency_id);
				?></span>
			</td>
		</tr>
<?php
				}
			} else {
?>
		<tr>
			<td colspan="<?php echo $row_count - 2; ?>" class="hikashop_cart_empty_footer"></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" data-title="<?php echo Jtext::_('TAXES'); ?>">
				<span class="hikashop_checkout_cart_taxes"><?php
					echo $this->currencyClass->format($taxes, $cart->full_total->prices[0]->price_currency_id);
				?></span>
			</td>
		</tr>
<?php
			}
		}

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

  • Posts: 107
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
3 years 2 months ago #269730

Hi Nicolas,

I have removed that code now but the VAT is still showing during checkout.
Please see attached highlighted in yellow.

Is there anything else that needs to be done?

Kind regards,
Joyce

Attachments:

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

  • Posts: 24312
  • Thank you received: 3748
  • MODERATOR
3 years 2 months ago #269734

Hello,

You need to do the same kind of modification for the checkout cart view.
www.hikashop.com/support/documentation/1...-display.html#layout

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: 107
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
3 years 2 months ago #269766

Hi Jerome,

Now it worked, thanks!

regards,
Joyce

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

Time to create page: 0.083 seconds
Powered by Kunena Forum