Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / remove shipping costs

remove shipping costs

Locked

Views: 865

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
13 Aug 2009, 5:14 AM
#1
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

remove shipping costs

Anyone know how to remove shipping costs from the checkout confirmation page? - my products are downloadable and that being included in the totals as £0.00 looks slightly non-sensical>>

_thanks

13 Aug 2009, 2:38 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: remove shipping costs

If you are seeing the checkout_shipping page when you only have Downloads in the shopping cart then you have them configured incorrectly ... :blink:

Downloads are configured as:

Product is Virtual: **No, Shipping Address Required **

Always Free Shipping: No, Normal Shipping Rules

Downloads know that they do not have shipping based on the filename on the attribute ...

Once setup correctly, you can then change the language file on the shipping from:

/includes/languages/english/modules/order_total/ot_shipping.php

Line #25 : define('FREE_SHIPPING_TITLE', 'Free Shipping');

to something that works better for you ...

13 Aug 2009, 5:08 PM
#3
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: remove shipping costs

Thanks for the reply..>>

If you are seeing the checkout_shipping page when you only have Downloads in the shopping cart then you have them configured incorrectly ...

No.. I'm not ... I should say that I have the add on 'Fast and Easy Checkout' currently installed so when I'm taken to the one page checkout from the shopping cart the shipping costs (of £0.00) are included at the bottom - in the totals - which as I said is pointless.

Do you know how to remove this line?

_thanks

13 Aug 2009, 5:37 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: remove shipping costs

I do not use that Add On ... so I really could not tell you what needs to be done ...

13 Aug 2009, 6:07 PM
#5
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: remove shipping costs

I do not use that Add On ... so I really could not tell you what needs to be done ...

It makes no difference regarding this - I only told you so that you would understand that I don't have a shipping page or even payment module page before - so however you would do it without the add-on will be the same with it ~ that's if you can help..

_thanks

13 Aug 2009, 10:41 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: remove shipping costs

Try this and see if it works ...

Edit the module:
/includes/modules/order_total/ot_shipping.php

and replace the function process with:

    function process() {
      global $order, $currencies;

if ($order->info['shipping_cost'] == 0) {
  // do not show it
} else {
  // show it
        $this->output[] = array('title' => $order->info['shipping_method'] . ':',
                                'text' => $currencies->format($order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value']),
                                'value' => $order->info['shipping_cost']);
}
    }

This will make it not show in the checkout ... then change the language file for:

/includes/languages/english/modules/order_total/ot_shipping.php

Line #25 : define('FREE_SHIPPING_TITLE', 'Free Shipping'); 

to read how you want it to appear in the My Account ...

I am guessing that this should work with your add on as well ...