- Posts: 78
- Thank you received: 0
shipping price displayed with taxes
15 years 6 months ago #9894
by jasonm
shipping price displayed with taxes was created by jasonm
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.
15 years 6 months ago #9897
by nicolas
Replied by nicolas on topic Re: shipping price displayed with taxes
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.
15 years 6 months ago #9899
by jasonm
Replied by jasonm on topic Re: shipping price displayed with taxes
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
but I cant work out where the options is on how to display it.
This code in the checkout/cart view appears to give you the options of how it is displayed
Code:
<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.
15 years 6 months ago #9900
by nicolas
Replied by nicolas on topic Re: shipping price displayed with taxes
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){
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.
15 years 6 months ago #9901
by jasonm
Replied by jasonm on topic Re: shipping price displayed with taxes
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>
<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.
15 years 6 months ago #9902
by jasonm
Replied by jasonm on topic Re: shipping price displayed with taxes
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.
15 years 6 months ago #9903
by jasonm
Replied by jasonm on topic Re: shipping price displayed with taxes
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.196 seconds