How to place shippingcosts BELOW the Taxfield?

  • Posts: 38
  • Thank you received: 0
11 years 1 month ago #133060

Hi,

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

Regards,

GC


COBIZ webdevelopment | www.cobiz.nl
Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #133070

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: 11 years 1 month ago by Mohamed Thelji.

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

  • Posts: 38
  • Thank you received: 0
11 years 1 month ago #133071

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.

  • Posts: 38
  • Thank you received: 0
11 years 1 month ago #133098

Ok done, thanks!


COBIZ webdevelopment | www.cobiz.nl

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #133115

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.

  • Posts: 332
  • Thank you received: 6
11 years 4 weeks ago #134061

Goslingcools,

Can you explain how you accomplished this?

Thanks.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 weeks ago #134094

Hi,

You'll just have to move this 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 :
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.087 seconds
Powered by Kunena Forum