[solved] hide shipping tax in chechout

  • Posts: 37
  • Thank you received: 1
11 years 5 months ago #104845

hi
how can i hide 'shipping tax' in checkout?
i would like hide the row in the circle

Last edit: 11 years 5 months ago by Ruzza.

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #104874

Hi,

There are several solutions, for most of them, they use a view override.
You have to override the view "checkout | cart" and edit the part which display the taxes.

In your case, you have the option "detailed_tax_display" activated.

	if(bccomp($taxes,0,5)){
		if($this->config->get('detailed_tax_display') && isset($this->full_total->prices[0]->taxes)){
			foreach($this->full_total->prices[0]->taxes as $tax){
You can add a little check just after in order to skip specific taxes like:
	if(bccomp($taxes,0,5)){
		if($this->config->get('detailed_tax_display') && isset($this->full_total->prices[0]->taxes)){
			foreach($this->full_total->prices[0]->taxes as $tax){
				if($tax->tax_namekey == '4') continue;
At this moment, the tax with the namekey "4" will be skip (so, not display in the page).

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: 37
  • Thank you received: 1
11 years 5 months ago #105135

hi. in this way I hide only the voice, while in the total is also added shipping fee. I modified so to show me on the shipping line the shipping price + shipping fee.
I wish that on the taxes line, the shipping VAT is not counted because it already added in the shipping line.
sorry for my bad english

Last edit: 11 years 5 months ago by Ruzza.

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #105141

I doubt that you want to do that. you're supposed to display the full tax on the cart.
Instead I would recommend to display the shipping line without the tax by changing the line:
echo $this->currencyHelper->format(@$this->shipping->shipping_price_with_tax,$this->shipping->shipping_currency_id);

to:
echo $this->currencyHelper->format(@$this->shipping->shipping_price,$this->shipping->shipping_currency_id);

in that same file.

The following user(s) said Thank You: Ruzza

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

  • Posts: 37
  • Thank you received: 1
11 years 5 months ago #105332

Thank you. but in the end, I left as default.
can i ask two other things?

1) I have enabled the option to display the weight on the product page, but it is at the bottom. I can not find a way to move it as shown in figure:



2)on many pages there's the shopping cart, which refers to checkout as a default. but the problem is that:
if I go from my-account I get this address:

if I access it from the store I get this address, where I also have the left menu:

Last edit: 11 years 5 months ago by Ruzza.

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #105384

Hi,

1. Can you please give a link to that product page so that we can see that ?

2. If you want to avoid that, you can set the menu that you want in the URL with the "force a menu on checkout" option of the configuration.

The following user(s) said Thank You: Ruzza

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

  • Posts: 37
  • Thank you received: 1
11 years 5 months ago #105422
Last edit: 11 years 5 months ago by Ruzza.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #105423

Hi,

You can edit the view "product / show_tabular" and move the code:

		<div id="specification">
		<?php
			//LAYOUT show_block_dimensions
			$this->setLayout('show_block_dimensions');
			echo $this->loadTemplate();
			if(!empty($this->fields)){
				//LAYOUT show_block_custom_main
				$this->setLayout('show_block_custom_main');
				echo $this->loadTemplate();
			}
		?>
		</div>
After:
	<span id="hikashop_product_price_main" class="hikashop_product_price_main">
		<?php
		//LAYOUT listing_price
		if ($this->params->get('show_price')) {
			$this->row = & $this->element;
			$this->setLayout('listing_price');
			echo $this->loadTemplate();
		}
		?>
	</span><br />

The following user(s) said Thank You: Ruzza

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

  • Posts: 37
  • Thank you received: 1
11 years 5 months ago #105430

Thank you very much. works great

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

Time to create page: 0.083 seconds
Powered by Kunena Forum