Forums / Built-in Shipping and Payment Modules / How to hide all other shipping options when an order is eligible for free shipping?

How to hide all other shipping options when an order is eligible for free shipping?

Locked

Started by shirster on 3 Jul 2007, 7:05 PM · Views: 6,212

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
3 Jul 2007, 7:05 PM
#1
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

How to hide all other shipping options when an order is eligible for free shipping?

Hi all,

Did a couple of searches on the forum but couldn't find anything... maybe I wasn't using the right keywords... anyway I really think this should be a default option but I have no idea how to make it work so here it goes...

I'm using Free Shipping Options along with Table Rate. Orders above $100 get free shipping. Everything else gets the Table Rate.

In my Free Shipping Options I have the following:

Total >=
100

Total <=
9999999

But when I try it with a test order, the Table Rate shipping option is displayed along with the Free Shipping. Which doesn't make sense in my case because I'm not offering any "overnight" or "express" shipping methods and why would anyone want to pay for Table Rate when they can get free shipping? It really does confuse the customers.

If this could not be achieved by changing settings in the admin, could anyone let me know how I could make it work maybe by changing the core codes or something?

Thanks in advance !

Shirley :)

15 Jul 2007, 2:55 PM
#3
irbis avatar

irbis

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

Free shipping option it is "option" - you'll select the shipping method and carrier
But if customer want the good overnight with UPS for example - you can offer overnight not free.
If you have table rate module installed you do not need free shipping option module

18 Jul 2007, 11:36 AM
#4
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

Hi irbis,

Thanks for your message, would you mind to let me know how do I have both weight-based shipping rates and amount-based free shipping using only the table rate module?

Thanks,
Shirley

20 Jul 2007, 5:23 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,717
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

... and what happens if you use the Admin> Modules> Order Totals> Shipping> Free shipping over $xx option ?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

20 Jul 2007, 5:28 PM
#7
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

Hi Kim,

Thanks for your message, I didn't think of using that option... stupid me... could that module be duplicated? I have different free shipping amounts for different zones...

Thanks !
Shirley :)

25 Jul 2007, 3:16 PM
#8
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

Hmmm having looked at the module I don't think this is what I need... unless it could work for different zones...

So now back to my question, how do I hide all other shipping methods when an order is eligible for free shipping?

(I have different free shipping amounts for different zones, say $100 for zone A and $200 for zone B, for example.)

Thanks in advance !
Shirley :)

29 Jul 2007, 8:26 AM
#9
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

Bump :)

(Having a feeling that I'll be heading to the commercial help forum soon...)

Shirley

30 Jul 2007, 1:26 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: How to hide all other shipping options when an order is eligible for free shipping?

The Module for Shipping ot_shipping.php is best managed within the module ...

You could try setting different levels based on the zone selected ...

I am not sure off the top of my head how smoothly it would clone but as with any of the modules as long as it is producing the proper end result then you have nothing to lose in trying ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Jul 2007, 2:28 AM
#11
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

Hi Linda,

Thanks, but I don't see where I can set a zone for the ot_shipping module? In the admin only International / National and Both are available...

Thanks !
Shirley :)

30 Jul 2007, 4:03 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: How to hide all other shipping options when an order is eligible for free shipping?

Got a better way ... :smile:

Edit the file:
/includes/modules/pages/checkout_shipping/header_php.php

NOTE: there is no override for this ...

Add in above the line:

  require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
// free shipping US >= $75.00
  if ($order->delivery['country_id'] == 223 && $order->info['total'] >= 75) {
    $free_shipping = true;
    $pass = true;
    $_SESSION['shipping'] = 'free_free';
    $_SESSION['shipping'] = array('id' => $_SESSION['shipping'],
                                  'title' => 'Free Shipping',
                                  'cost' => 0.00);
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
  }

Note: you will need to address the shipping estimator in a similar fashion ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jul 2009, 2:34 AM
#13
bhadz08 avatar

bhadz08

New Zenner

Join Date:
Jun 2009
Posts:
41
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

i have looked over the forums about how to skip the step 1 in checkout process but unfortunately havn't got any solution. all i is know is that it can skip step1 if the products are set to "yes, skip shipping address". but sadly i have over 10,000 downloadable products posted on my site and i dont want to go over again to edit those products that are set to "No, shipping Address Required". so i just want to ask where to find the code that handles these options so that i can change the logic or set it the same as the "yes, skip..." or the products that set to "No, Shipping Address Required" would still be read as the "Yes, Skip Shipping Address... anyway all my products are all downloadable and no shipping address required.. thanks.. looking forward for your response...

18 Jul 2009, 3:46 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: How to hide all other shipping options when an order is eligible for free shipping?

If ALL products are Virtual Products, then you could use this command in the Tools ... Install SQL Patches ...

UPDATE products SET products_virtual = 1;

NOTE: be sure to backup your database before making changes ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2009, 7:38 AM
#15
bhadz08 avatar

bhadz08

New Zenner

Join Date:
Jun 2009
Posts:
41
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

Thanks!!! whew!

3 Feb 2010, 4:13 AM
#16
bhadz08 avatar

bhadz08

New Zenner

Join Date:
Jun 2009
Posts:
41
Plugin Contributions:
0

Re: How to hide all other shipping options when an order is eligible for free shipping?

Ajeh:

If ALL products are Virtual Products, then you could use this command in the Tools ... Install SQL Patches ...

NOTE: be sure to backup your database before making changes ...
hello... i need help for downloads... ive been figuring this out when i started my site. my problem is i have 40,000+ of downloadable products and was set-up differently and incorrectly due to number personnel incorrect postings. some will charge shipping during checkout some are ok..and i dont want to go one by one editing those products. so im just asking that is there a shorter way to set all products attributes to downloads.to make all products to: 1. Product is Virtual: no, shpping address requied 2. Always free shipping: no, normal shipping rules. or is there a query to run? what would be the exact query or a command in tools for this? any help would be appreciated very much.. thanks you..

3 Feb 2010, 4:41 AM
#17
ajeh avatar

ajeh

Oba-san

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

Re: How to hide all other shipping options when an order is eligible for free shipping?

See your other thread ... it is too confusing to try to post to multiple threads ... only 1 is needed, thanks!
http://www.zen-cart.com/forum/showthread.php?p=837749#post837749

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!