Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / FREE SHIPPING with Overnight Express Shipping Option

FREE SHIPPING with Overnight Express Shipping Option

Locked

Views: 4,439

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
22 Jan 2009, 3:20 PM
#1
marleyman avatar

marleyman

New Zenner

Join Date:
Mar 2007
Posts:
31
Plugin Contributions:
0

FREE SHIPPING with Overnight Express Shipping Option

Hi Newbie here,
I currently offer FREE SHIPPING only on my Zen Cart Store.

I need to offer a second Shipping Option: Overnight Express Shipping for $39.00

I have no idea how to make this work - I've research and tried everything but have not been successful at setting this up. :blush:

Can anyone out there help a Newbie ??
Thanks for any help you can give!

22 Jan 2009, 5:06 PM
#2
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

Re: FREE SHIPPING with Overnight Express Shipping Option

That's a tough one. I just went and looked at all the shipping options and nothing sounds like it will work right. The only way I can see to do it is to offer a PRODUCT called "Overnight Shipping" for the customer to select and Add to Cart.

22 Jan 2009, 6:32 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: FREE SHIPPING with Overnight Express Shipping Option

Which Free Shipping module are you using?

Have you used the Always Free Shipping or 0 weight on your products?

This can be done, but more information is needed to know how you are currently doing the Free Shipping ...

23 Jan 2009, 11:18 AM
#4
marleyman avatar

marleyman

New Zenner

Join Date:
Mar 2007
Posts:
31
Plugin Contributions:
0

Re: FREE SHIPPING with Overnight Express Shipping Option

Ajeh:

Which Free Shipping module are you using?

Have you used the Always Free Shipping or 0 weight on your products?

This can be done, but more information is needed to know how you are currently doing the Free Shipping ...

Hi and thanks for your reply.
I have all of my products set with "Yes, Always Free Shipping" and all of my products have "0" in the weight field.

Thank you for any help you can give me!

23 Jan 2009, 3:06 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: FREE SHIPPING with Overnight Express Shipping Option

Setting the Products as Always Free Shipping YES will overrule all shipping methods to work with the Free Shipping freeshipper shipping module ...

However ...

As you are trying to do a Flat Rate for the:
Overnight Express Shipping for $39.00

You could customize a shipping module to NOT check for this feature ...

If you clone the Flat Rate flat, you can customize the code to not do the normal testing for Free Shipping so that it can run ...

Example: Flat Express flatexpress

Copy the files:
/includes/modules/shipping/flat.php
/includes/languages/english/modules/shipping/flat.php

to the new files:
/includes/modules/shipping/flatexpress.php
/includes/languages/english/modules/shipping/flatexpress.php

Change all occurances of, these are case sensative:
flat to flatexpress
FLAT to FLATEXPRESS

Customize the code for the $this->enabled by commenting out the IF statement:

      // disable only when entire cart is free shipping
//      if (zen_get_shipping_enabled($this->code)) {
        $this->enabled = ((MODULE_SHIPPING_FLATEXPRESS_STATUS == 'True') ? true : false);
//      }

Now, this will run at the same time as the Free Shipping freeshipper shipping module ...

Nifty, eh? :cool:

24 Jan 2009, 1:44 PM
#6
marleyman avatar

marleyman

New Zenner

Join Date:
Mar 2007
Posts:
31
Plugin Contributions:
0

Re: FREE SHIPPING with Overnight Express Shipping Option

WOW! Your directions were spot on! and it worked like a charm!

Thank you, thank you, thank you!

I love learning new "Zens"! :clap:

Forever grateful!

24 Jan 2009, 4:03 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: FREE SHIPPING with Overnight Express Shipping Option

Thanks for the update that this was able to work for you ... :smile:

There is always a way to make the code work ... just some ways are easier or harder than others ... :lamo:

13 Mar 2009, 1:59 PM
#8
kransom avatar

kransom

New Zenner

Join Date:
Apr 2006
Posts:
5
Plugin Contributions:
0

Re: FREE SHIPPING with Overnight Express Shipping Option

Ok following on from this, I have got the following:

  1. table shipping based on value of order
  2. next day charge
  3. next day by midday
  4. next day by morning
  5. on saturday

is it possible without changing 2-5 so that they incorporate the table costs, to allow the customer to select 1 (as this is default) and then also choose 2-5 if required?

thanks

kinsley

30 Jan 2010, 10:20 PM
#9
megetweh avatar

megetweh

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Re: FREE SHIPPING with Overnight Express Shipping Option

Ajeh:

Setting the Products as Always Free Shipping YES will overrule all shipping methods to work with the Free Shipping freeshipper shipping module ...

However ...

As you are trying to do a Flat Rate for the:
Overnight Express Shipping for $39.00

You could customize a shipping module to NOT check for this feature ...

If you clone the Flat Rate flat, you can customize the code to not do the normal testing for Free Shipping so that it can run ...

Example: Flat Express flatexpress

Copy the files:
/includes/modules/shipping/flat.php
/includes/languages/english/modules/shipping/flat.php

to the new files:
/includes/modules/shipping/flatexpress.php
/includes/languages/english/modules/shipping/flatexpress.php

Change all occurances of, these are case sensative:
flat to flatexpress
FLAT to FLATEXPRESS

Customize the code for the $this->enabled by commenting out the IF statement:

  // disable only when entire cart is free shipping

// if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FLATEXPRESS_STATUS == 'True') ? true : false);
// }

> 
> Now, this will run at the same time as the Free Shipping freeshipper shipping module ...
> 
> Nifty, eh? :cool:

WOW. Thanks for that info man. It was absolutely useful. Big up yourself!!!
30 Jan 2010, 11:03 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: FREE SHIPPING with Overnight Express Shipping Option

Thanks for the update that this was able to help you ... :smile:

10 May 2010, 2:50 AM
#11
realk2_llc avatar

realk2_llc

New Zenner

Join Date:
May 2010
Posts:
3
Plugin Contributions:
0

Re: FREE SHIPPING with Overnight Express Shipping Option

Hi, ok first I want to thank you for this post on how to customize shipping options. this is very well drawn.Well anyway im sure this has been asked but i'm trying to figure out how I change the actual name of the shipping option for example,

Instead of this:

Flat Rate
best way $5.00

I want it to say this:

USPS Priority Shipping
2-3 days $5.00

so customers know why there is driffrent shipping options and what they are.

Thank you in advanced, I would love to figure this out.

10 May 2010, 3:05 AM
#12
realk2_llc avatar

realk2_llc

New Zenner

Join Date:
May 2010
Posts:
3
Plugin Contributions:
0

Re: FREE SHIPPING with Overnight Express Shipping Option

Ok so this might work tell me if im wrong! thanks

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |   
// | http://www.zen-cart.com/index.php                                    |   
// |                                                                      |   
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: flatpriority.php 1969 2005-09-13 06:57:21Z drbyte $
//

define('MODULE_SHIPPING_FLATPRIORITY_TEXT_TITLE', 'Flat Rate');
define('MODULE_SHIPPING_FLATPRIORITY_TEXT_DESCRIPTION', 'Flat Rate');
define('MODULE_SHIPPING_FLATPRIORITY_TEXT_WAY', 'Best Way');
?>

if i change the information in RED will that change the names of it? or will i have to find this same code in the other shipping modules folder would make sense if i did this just seems to easy. thanks

10 May 2010, 2:58 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: FREE SHIPPING with Overnight Express Shipping Option

The language files are designed so that your changes, using the templates and overrides, will be used instead of the original text ...