Forums / Built-in Shipping and Payment Modules / Help with Free Shipping & UPS Module

Help with Free Shipping & UPS Module

Locked

Started by smartmomma on 11 May 2006, 2:47 AM · Views: 6,848

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
11 May 2006, 2:47 AM
#1
smartmomma avatar

smartmomma

New Zenner

Join Date:
Jun 2005
Posts:
18
Plugin Contributions:
0

Help with Free Shipping & UPS Module

Okay, my shipping is a bit complicated. Basically, for the US only, I Have

  1. Table Rates - this is for my basic ground shipping via UPS
  2. Free Shipping for Orders over $99 (Under the Order Totals - Shipping Module) - this is for ground UPS only

Also, I want to offer 2-day shipping on all products within the US, no matter how much the price is, so I used the UPS module, but only checked the 2-day option.

My question is, for orders over $99, I want the customer to have the Free Shipping for Ground option AND the 2-day shipping for the UPS price option. But I see in looking at the code on the UPS module that this is set up to not display at all if the order is set to Free Shipping. How can I change this so the customer has both options?

I assume my answer is in this code in the ups.php file. Assumption is based on the first line of this code.

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

  if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_UPS_ZONE > 0) ) {
    $check_flag = false;
    $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_UPS_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
    while (!$check->EOF) {
      if ($check->fields['zone_id'] < 1) {
        $check_flag = true;
        break;
      } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
        $check_flag = true;
        break;
      }
      $check->MoveNext();
    }

    if ($check_flag == false) {
      $this->enabled = false;
    }
  }
11 May 2006, 3:12 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Help with Free Shipping & UPS Module

Why not just turn on the UPS shipping for all ...

Then set a Free Shipping over 99.00 on the Order Total Modules for the US only ...

Or ...

If you want to offer the Free Shipping as an Optional Choice to US customers only, use the Shipping Modules Free Options (freeoptions) and configure for total >= 99 and set create a Zone for your US customers ...

Now US customers could choose the Free slow boat ... or the expensive gotta have it yesterday ...

Meanwhile, customers outside the US do not get the Free Shipping Option ...

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!

11 May 2006, 6:06 PM
#3
smartmomma avatar

smartmomma

New Zenner

Join Date:
Jun 2005
Posts:
18
Plugin Contributions:
0

Re: Help with Free Shipping & UPS Module

Thanks for the reply Ajeh. Where do I find the freeoptions module? I don't see it in the shipping modules. I just see freeshipper which doesn't have a place to input total=>99, or does it?