Skip to main content

How to place shippingcosts BELOW the Taxfield?

12 years 11 months ago #133060 by goslingcools
Hi,

How / where can I set the Shippingcosts BELOW the Taxfield?

Regards,

GC

COBIZ webdevelopment | www.cobiz.nl

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

12 years 11 months ago - 12 years 11 months ago #133070 by Mohamed Thelji
Hi,
You'll be able to do it by editing the code of the "cart" file of the "checkout" view of your front-end template through "Hikashop->Display->Views".
Note that some development skills will be required.
Last edit: 12 years 11 months ago by Mohamed Thelji.

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

12 years 11 months ago #133071 by goslingcools
Ok. thanks. Skills are here :-)
But is this an override or lost when updating?

COBIZ webdevelopment | www.cobiz.nl

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

12 years 11 months ago #133098 by goslingcools
Ok done, thanks!

COBIZ webdevelopment | www.cobiz.nl

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

12 years 11 months ago #133115 by Mohamed Thelji

But is this an override or lost when updating?

This is an override which won't be lost after an update :).

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

12 years 11 months ago #134061 by LukeDouglas
Goslingcools,

Can you explain how you accomplished this?

Thanks.

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

12 years 11 months ago #134094 by Mohamed Thelji
Hi,

You'll just have to move this code :
Code:
if(!empty($this->shipping)) { ?> <tr> <?php echo $td; ?> <td id="hikashop_checkout_cart_shipping_title" class="hikashop_cart_shipping_title hikashop_cart_title"> <?php echo JText::_('HIKASHOP_SHIPPING'); ?> </td> <td class="hikashop_cart_shipping_value" > <span class="hikashop_checkout_cart_shipping"> <?php if(isset($this->value)) { echo $this->value; } else { $shipping_price = null; foreach($this->shipping as $shipping) { if(!isset($shipping->shipping_price) && isset($shipping->shipping_price_with_tax) ) { $shipping->shipping_price = $shipping->shipping_price_with_tax; //$shipping->shipping_price_with_tax = 0.0; } if(isset($shipping->shipping_price)) { if($shipping_price === null) $shipping_price = 0.0; if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($shipping->shipping_price_with_tax)) { $shipping_price += $shipping->shipping_price; } else { $shipping_price += $shipping->shipping_price_with_tax; } } } if($shipping_price !== null) { echo $this->currencyHelper->format($shipping_price, hikashop_getCurrency()); } } ?> </span> </td> </tr> <?php }
After :
Code:
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) { ?> <tr> <?php echo $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"> <span class="hikashop_checkout_cart_taxes"> <?php echo $this->currencyHelper->format($tax->tax_amount,$this->full_total->prices[0]->price_currency_id); ?> </span> </td> </tr> <?php } } else { ?> <tr> <?php echo $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"> <span class="hikashop_checkout_cart_taxes"> <?php echo $this->currencyHelper->format($taxes,$this->full_total->prices[0]->price_currency_id); ?> </span> </td> </tr> <?php } }

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

Time to create page: 0.116 seconds
Powered by Kunena Forum