shipping price displayed with taxes

  • Posts: 78
  • Thank you received: 0
13 years 8 months ago #9894

I see in the checkout/cart view there is a check to see whether the shipping price should be displayed with or without taxes but I can't for the life of me see where to set that option in the backend?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9897

If you go in the menu System->Shipping methods and edit your shipping methods, you can set there the tax category which hikashop will use for the prices of the shipping methods.

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

  • Posts: 78
  • Thank you received: 0
13 years 8 months ago #9899

The tax category is set and everything is working fine from the calculation point of view, I just want to change the way the shipping is displayed in the cart from without taxes to with taxes.

This code in the checkout/cart view appears to give you the options of how it is displayed

<span class="hikashop_checkout_cart_shipping">
							<?php 
								if(bccomp($taxes,0,5)){
									echo $this->currencyHelper->format(@$this->shipping->shipping_price,$this->shipping->shipping_currency_id);
								}else{
									echo $this->currencyHelper->format(@$this->shipping->shipping_price_with_tax,$this->shipping->shipping_currency_id);
								}
							?>
							</span>
but I cant work out where the options is on how to display it.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9900

Do you use the latest version of HikaShop ? We actually corrected HikaShop to display the shipping price with taxes.

Otherwise, you can just change the line:
if(bccomp($taxes,0,5)){

to:
if(false){

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

  • Posts: 78
  • Thank you received: 0
13 years 8 months ago #9901

Lets try the code again!

<span class="hikashop_checkout_cart_shipping">
<?php
if(bccomp($taxes,0,5)){
echo $this->currencyHelper->format(@$this->shipping->shipping_price,$this->shipping->shipping_currency_id);
}else{
echo $this->currencyHelper->format(@$this->shipping->shipping_price_with_tax,$this->shipping->shipping_currency_id);
}
?>
</span>

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

  • Posts: 78
  • Thank you received: 0
13 years 8 months ago #9902

Oops crossover, we are using Essential 1.4.7, but our checkout/cart file is 1.4.3

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

  • Posts: 78
  • Thank you received: 0
13 years 8 months ago #9903

Ok, sorted. copied our customisations out of our 1.4.3 file into 1.4.7 and its all good.

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

Time to create page: 0.047 seconds
Powered by Kunena Forum