How to place shippingcosts BELOW the Taxfield?
- goslingcools
-
Topic Author
- Offline
Less
More
12 years 11 months ago #133060
by goslingcools
COBIZ webdevelopment | www.cobiz.nl
How to place shippingcosts BELOW the Taxfield? was created by goslingcools
Hi,
How / where can I set the Shippingcosts BELOW the Taxfield?
Regards,
GC
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.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 11 months ago - 12 years 11 months ago #133070
by Mohamed Thelji
Replied by Mohamed Thelji on topic How to place shippingcosts BELOW the Taxfield?
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.
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.
- goslingcools
-
Topic Author
- Offline
12 years 11 months ago #133071
by goslingcools
COBIZ webdevelopment | www.cobiz.nl
Replied by goslingcools on topic How to place shippingcosts BELOW the Taxfield?
Ok. thanks. Skills are here 
But is this an override or lost when updating?
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.
- goslingcools
-
Topic Author
- Offline
12 years 11 months ago #133098
by goslingcools
COBIZ webdevelopment | www.cobiz.nl
Replied by goslingcools on topic How to place shippingcosts BELOW the Taxfield?
Ok done, thanks!
COBIZ webdevelopment | www.cobiz.nl
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 11 months ago #133115
by Mohamed Thelji
.
Replied by Mohamed Thelji on topic How to place shippingcosts BELOW the Taxfield?
This is an override which won't be lost after an updateBut is this an override or lost when updating?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 332
- Thank you received: 6
12 years 11 months ago #134061
by LukeDouglas
Replied by LukeDouglas on topic How to place shippingcosts BELOW the Taxfield?
Goslingcools,
Can you explain how you accomplished this?
Thanks.
Can you explain how you accomplished this?
Thanks.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 11 months ago #134094
by Mohamed Thelji
Replied by Mohamed Thelji on topic How to place shippingcosts BELOW the Taxfield?
Hi,
You'll just have to move this code :
After :
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
}
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