Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / How to disable ground services? when using Free Shipping - freeoptions

How to disable ground services? when using Free Shipping - freeoptions

Locked

Views: 1,478

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
15 Nov 2010, 11:38 PM
#1
yd29999 avatar

yd29999

Zen Follower

Join Date:
Jan 2006
Posts:
120
Plugin Contributions:
0

How to disable ground services? when using Free Shipping - freeoptions

Hello,
We are running 1.3.9h.
We would like UPS Ground and USPS Parcel Post not to show in the shipping estimator when Free Shipping - freeoptions kicks in.

I thought I saw a post someplace but now I can't find it.
Could someone point me to the right post or repost the instructions and code here.

Thank you in advance.

Wishing I was Zenned !
It's amazing what happens when I put the files in the right folders !!!

16 Nov 2010, 1:52 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How to disable ground services? when using Free Shipping - freeoptions

Free Shipping Options freeoptions is designed to show at the same time as the other shipping modules ...

If you do not want the other shipping modules to show when Free Shipping Options freeoptions shows, you would have to rewrite the shipping modules in some manner ...

Its original purpose was to offer a Free Shipping choice but allow customers to pick a faster, paid for method ...

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!

16 Nov 2010, 4:30 AM
#3
yd29999 avatar

yd29999

Zen Follower

Join Date:
Jan 2006
Posts:
120
Plugin Contributions:
0

Re: How to disable ground services? when using Free Shipping - freeoptions

Ajeh:

Free Shipping Options freeoptions is designed to show at the same time as the other shipping modules ...

If you do not want the other shipping modules to show when Free Shipping Options freeoptions shows, you would have to rewrite the shipping modules in some manner ...

Its original purpose was to offer a Free Shipping choice but allow customers to pick a faster, paid for method ...

I know this. I asked "We would like UPS Ground and USPS Parcel Post not to show in the shipping estimator when Free Shipping - freeoptions kicks in. "

Wishing I was Zenned !
It's amazing what happens when I put the files in the right folders !!!

16 Nov 2010, 1:51 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: How to disable ground services? when using Free Shipping - freeoptions

What are your settings on Free Shipping Options freeoptions?

I have done this before in the past, but need to know what is triggering your Free Shipping Options freeoptions shipping module ...

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!

17 Nov 2010, 10:38 AM
#5
yd29999 avatar

yd29999

Zen Follower

Join Date:
Jan 2006
Posts:
120
Plugin Contributions:
0

Re: How to disable ground services? when using Free Shipping - freeoptions

Just the dollar amount. No weight (blank), no item count (blank). Shipping Zone United States.

Wishing I was Zenned !
It's amazing what happens when I put the files in the right folders !!!

17 Nov 2010, 3:03 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: How to disable ground services? when using Free Shipping - freeoptions

For USPS ... you can change the method from:

          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );

to read:

          if ($type == 'PARCEL' && $_SESSION['cart']->show_total() >= 100) {
            // skip it
          } else {
          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );
          }

For UPS you can change from:

        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );

to read:

        if ($type == 'GND' && $_SESSION['cart']->show_total() >= 100) {
          // skip it
        } else {
        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
        }

just set the 100.00 to the amount that you are using in your Free Shipping Options freeoptions ...

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!

19 Nov 2010, 2:46 AM
#7
yd29999 avatar

yd29999

Zen Follower

Join Date:
Jan 2006
Posts:
120
Plugin Contributions:
0

Re: How to disable ground services? when using Free Shipping - freeoptions

Linda,
I'm impressed. You posted the code.
No, I haven't tried it on our test site yet, but I recognize you as the queen of shipping mods. So your work is golden with me.
Because you were kind enough to share the code, I'm buying the zen team a pot of coffee and a dozen donuts.

Thank you and the rest of the team for a much better job on the 1.9 series.

Wishing I was Zenned !
It's amazing what happens when I put the files in the right folders !!!

19 Nov 2010, 4:41 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: How to disable ground services? when using Free Shipping - freeoptions

Thank you for the support ... we really appreciate the coffee and donuts ... they really keep us going ...

Let us know how this works out for you ...

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!