Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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/showth...hipping_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: v1.5.5]
    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!

  3. #3
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default 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!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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. #5
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default 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!

  6. #6
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default 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:
    Code:
    // 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

    Code:
    // 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.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    You need to re-read that thread ... that code should be above the line:
    Code:
        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: v1.5.5]
    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!

  8. #8
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default 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!


  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    You are most welcome ... thanks for the update that this is now working 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: v1.5.5]
    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!

  10. #10
    Join Date
    Mar 2012
    Posts
    1
    Plugin Contributions
    0

    Default 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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Select Products Free US Shipping Only
    By stellarweb in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 9 Nov 2010, 08:51 PM
  2. Free USPS Domestic Shipping?
    By swamyg1 in forum Addon Shipping Modules
    Replies: 2
    Last Post: 26 Jun 2009, 03:33 PM
  3. Domestic Shipping only
    By Micksxboxmods in forum General Questions
    Replies: 0
    Last Post: 28 Sep 2008, 09:06 AM
  4. Domestic shipping only- by Categories/Products?
    By ahicks51 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 4 Nov 2007, 01:49 AM
  5. Certain items ship free ONLY in domestic?
    By standpipe in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Sep 2007, 06:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR