Forums / Built-in Shipping and Payment Modules / Free Shipping on Select Products (Domestic Only!)

Free Shipping on Select Products (Domestic Only!)

Views: 1,370

Results 1 to 11 of 11
3 Apr 2012, 5:41 AM
#1
sportbiker avatar

sportbiker

Zen Follower

Join Date:
Aug 2008
Location:
Southern California
Posts:
127
Plugin Contributions:
0

Free Shipping on Select Products (Domestic Only!)

Regarding ZenCart 1.39h

I've done multiple stores before, but this problem has me stumped.

I have domestic and internationals zones.
No problem.

The shipping rates for FedEx and USPS appear in the shipping estimator fine.
No problem.

The FREE SHIPPING (freeshipper) Module is on for DOMESTIC zones only.
No problem.

But, when I set one product to "YES, ALWAYS FREE SHIPPING", the shipping estimator won't return shipping rates for international. I'm assuming that's because the "ALWAYS FREE SHIPPING" is setting a 'zero' weight for everyone. If that's true, what's a work around?

**ULTIMATELY:
How can I set select specific products to have free domestic freight only and get the shipping estimator to return freight costs for international? Keep in mind, other items might be added to the cart that don't qualify for free freight.
**

Thanks in advance!

////// **LeatherJacketMedia.com**
"I'm no Zen Cart expert, but I did sleep at a Holiday Inn Express last night."

3 Apr 2012, 1:00 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping on Select Products (Domestic Only!)

You might look to see if this thread helps ...

While it was made for all products to be free shipping to the US, you can use the same thing to make only some products free to the US based on being marked as Always Free Shipping ...

http://www.zen-cart.com/forum/showthread.php?t=176822&highlight=free_shipping_weight

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!

4 Apr 2012, 3:50 PM
#3
sportbiker avatar

sportbiker

Zen Follower

Join Date:
Aug 2008
Location:
Southern California
Posts:
127
Plugin Contributions:
0

Re: Free Shipping on Select Products (Domestic Only!)

Wow, that was easier than I thought. For anyone else who might attempt this, to find the ZenID for the zone, hover your mouse over the edit button when looking at your zone definitions and the link with the ZenID number will appear in the bottom of the browser window.

Also — it seems that the USPS.php code has changed because of updates over time, but I was able to figure it out and make it work.

One question though — When logging into my shipping module from the Admin side, although I can click on the USPS line and get into it to make changes, alts, etc, the line is blank. I can see the little red dot, but there's no text in front of it. It's just a minor visual annoyance, but it works. Any tips how to get that line back so my client can see it?

Thanks as always!

////// **LeatherJacketMedia.com**
"I'm no Zen Cart expert, but I did sleep at a Holiday Inn Express last night."

4 Apr 2012, 3:54 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping on Select Products (Domestic Only!)

Try doing a REMOVE, INSTALL and re-configure on it ...

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!

4 Apr 2012, 5:02 PM
#5
sportbiker avatar

sportbiker

Zen Follower

Join Date:
Aug 2008
Location:
Southern California
Posts:
127
Plugin Contributions:
0

Re: Free Shipping on Select Products (Domestic Only!)

DOH! I forgot about that pesky routine when messing with the USPS updates. I'll try that tonight. Thank you!

////// **LeatherJacketMedia.com**
"I'm no Zen Cart expert, but I did sleep at a Holiday Inn Express last night."

5 Apr 2012, 2:21 AM
#6
sportbiker avatar

sportbiker

Zen Follower

Join Date:
Aug 2008
Location:
Southern California
Posts:
127
Plugin Contributions:
0

Re: Free Shipping on Select Products (Domestic Only!)

Well, re-installing the USPS.php didn't help. In fact, I further learned that a person creating a new account can't get past the shipping information page during checkout.

So — just to share, I changed this:

// use USPS translations for US shops
   var $usps_countries;

  function usps() {
    global $order, $db, $template, $current_page_base;

    $this->code = 'usps';
    $this->title = MODULE_SHIPPING_USPS_TEXT_TITLE;
    if (MODULE_SHIPPING_USPS_STATUS == 'True' && MODULE_SHIPPING_USPS_DEBUG_MODE != 'Off' && IS_ADMIN_FLAG) {
      $this->title .=  '<span class="alert"> (Debug is ON: ' . MODULE_SHIPPING_USPS_DEBUG_MODE . ')</span>';
    }
    if (MODULE_SHIPPING_USPS_STATUS == 'True' && MODULE_SHIPPING_USPS_SERVER != 'production' && IS_ADMIN_FLAG) {
      $this->title .=  '<span class="alert"> (USPS Server set to: ' . MODULE_SHIPPING_USPS_SERVER . ')</span>';
    }
    $this->description = MODULE_SHIPPING_USPS_TEXT_DESCRIPTION;
    $this->sort_order = MODULE_SHIPPING_USPS_SORT_ORDER;
    $this->icon = $template->get_template_dir('shipping_usps.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'shipping_usps.gif';
    $this->tax_class = MODULE_SHIPPING_USPS_TAX_CLASS;
    $this->tax_basis = MODULE_SHIPPING_USPS_TAX_BASIS;

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

TO THIS

// use USPS translations for US shops
   var $usps_countries;

  function usps() {
    global $db, $order, $cart;

        $valid_zone_id = 2;
        $check_flag = false;
        $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . $valid_zone_id . "' 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 == true) {
          $this->enabled = false;
        } else {
          $this->enabled = true;
        }

and although it returns quotes in the shipping estimator for international orders, it appears the modified code 'breaks' something. Although I'm not sure how, we do use the COWOA module here, so perhaps there's a conflict, but I can't see how this aspect of the USPS.php could impact it.

////// **LeatherJacketMedia.com**
"I'm no Zen Cart expert, but I did sleep at a Holiday Inn Express last night."

5 Apr 2012, 3:41 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping on Select Products (Domestic Only!)

You need to re-read that thread ... that code should be above the line:

    if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_USPS_ZONE > 0) ) {

You have to place the code changes where they belong ...

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!

5 Apr 2012, 5:25 AM
#8
sportbiker avatar

sportbiker

Zen Follower

Join Date:
Aug 2008
Location:
Southern California
Posts:
127
Plugin Contributions:
0

Re: Free Shipping on Select Products (Domestic Only!)

Today's forecast calls for blue skies!

AWESOME! AWESOME! You made me and my client very happy and thank you for your guidance. I fixed it, placed a domestic order and an international and it worked great!

I can't express enough how great everyone at Zen Cart is. I think this has the best community of enthusiasts and teamwork compared to all others. This is great! Thank you!

:clap:

////// **LeatherJacketMedia.com**
"I'm no Zen Cart expert, but I did sleep at a Holiday Inn Express last night."

5 Apr 2012, 12:56 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping on Select Products (Domestic Only!)

You are most welcome ... thanks for the update that this is now working for you ... :smile:

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!

6 Apr 2012, 5:13 AM
#10
nadygold avatar

nadygold

New Zenner

Join Date:
Mar 2012
Posts:
1
Plugin Contributions:
0

Re: Free Shipping on Select Products (Domestic Only!)

Hi
i am new one in zen cart. i making a store for saddlery items. in that saddle would be treated for $90.00 as a shipping amount but other products like belt. it's be shipping cost around $5.00 so how can i define the price for different products. any help Wellcome.

6 Apr 2012, 12:59 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping on Select Products (Domestic Only!)

If you need to price your shipping individually per Product, you could use the Per Unit perweightunit where the Product Weight is the shipping price ...

If you use this, change the settings in the Configuration ... Shipping/Packaging ... and set the Maximum Weight to 5000 and the Tare Rates to 0:0 ...

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!