Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2009
    Posts
    10
    Plugin Contributions
    0

    help question Free Shipping By Zone

    Hi all:

    I've searched here and in the Zen Cart site for a contribution or a custom modification similar to what we need without success.

    Here's a little background of our business: We sell accounting supplies and tax forms. We used to be a catalog/phone order business only. We migrated the business to Zen Cart from a custom-built COBOL application running on SCO UNIX that was coded God knows when. So far, we have added all products successfully, and have fulfilled online orders without a problem.

    There's one feature that we haven't been able to replicate from the old catalog/phone order days, which is offering free shipping by state. We have a chart of free shipping minimums, and it's divided by state. For example: to get free shipping to Alabama, the customer needs to spend at least $180.00, Arizona $295, and so on. Each individual state has a free shipping minimum. We are moving away from the printed catalog, and we want to offer this feature to our online customers.

    I've tried a few contributions so far (Table Rate, Multiple Zones Modification, etc.) with little success. By default, Zen will allow free shipping to just one zone, but since we have 50 zones, it's kind of useless for what we need.

    We're using a very lightly customized version Zen Cart 1.3.9d (added a Manufacturer Model Number field to the Admin products page for internal purposes). We also use the Tables Discount order total module. Everything else we use are the standard modules that come with Zen (UPS and PayPal modules) except for a few reporting modules.

    Could someone at least point me in the right direction? Maybe there's a contribution out there that can accomplish this with a little tweaking? Maybe cloning the default free shipping module? I don't know. I am no PHP coder. I can read code, I know a little bit about MySQL and can easily make modifications to the code if need be, but unfortunately I don't write code from scratch.

    Thank you all! Cheers! :-)

    Victor

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

    Default Re: Free Shipping By Zone

    What shipping module(s) are you using when the order is NOT Free Shipping?
    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!

  3. #3
    Join Date
    May 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Free Shipping By Zone

    We are only using the default UPS shipping module that came with Zen. We are not offering free shipping on online orders right now...

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

    Default Re: Free Shipping By Zone

    You could customize the table:
    zones

    and add a new field such as:
    zone_free_shipping_over

    and do a look up in the UPS shipping module and disable it when the total for:
    $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices()

    is >= to that amount ...

    Then customize the Shipping ot_shipping module and customize that to use the:
    $order->delivery['country']['id']
    $order->delivery['zone_id']

    to manage the orders that qualify for free shipping rather than the amount and choice of National or Internation ...
    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. #5
    Join Date
    May 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Free Shipping By Zone

    I'll try your suggestions. I'll let you know the outcome. Wish me luck! And thanks!!

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

    Default Re: Free Shipping By Zone

    Let us know how it 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!

  7. #7
    Join Date
    May 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Free Shipping By Zone

    Hi Linda,

    I successfully added the field zone_free_shipping_over to my zones table (made it DECIMAL 15,4 to match other numeral fields throughout the database) and added all the corresponding amounts to each zone. So far, so good...

    I opened the ups.php file and I couldn't find a $_SESSION['cart'] variable anywhere, nor a sql query line for me to add the zone_free_shipping_over field. Same with the ot_shipping.php file.

    I guess it wasn't just copying/pasting a few lines of code. Sorry about this. I'm not a php coder, so if you could elaborate a little bit more, it would be very helpful to me.

    I don't know if this is relevant or not. When I first set up Zen, I deleted all countries except US (we only sell to USA) and made each state a different zone.

    I really appreciate your help in this! :-)

    Victor

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

    Default Re: Free Shipping By Zone

    I would have to sit down and write all of the code for this ... I am not sure when I will get the time ...

    NOTE: when using the $_SESSION['cart'] make sure it is available to you with a:
    global $cart ...
    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!

  9. #9
    Join Date
    May 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Free Shipping By Zone

    Thank you for your help!

  10. #10
    Join Date
    May 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Free Shipping By Zone

    If this helps you (or anyone else that could help), I kind of deducted the logic of what this function needs to do:

    I need the function to look at the state that the order ships to, then retrieve the free shipping limit amount corresponding to that state/zone located in the "zone_free_shipping_over" column in the zones table. Then compare the order sub-total against this amount. If the order sub-total is equal or larger, shipping is $0.00, else shipping is whatever the module says it is.

    I wouldn't know how to code this in PHP. Any takers? :-)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Free Shipping To Set Zone
    By kitcorsa in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 20 Sep 2013, 02:52 PM
  2. v138a Zone rate shipping does not disappear when free shipping option is triggered
    By corseter in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 4 Sep 2013, 02:35 PM
  3. FREE SHIPPING! Module with no shipping zone
    By ebaobao in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 24 May 2013, 03:57 PM
  4. Free shipping zone
    By deb in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 9 May 2009, 09:17 PM
  5. Free shipping item weight calculated wrongly for non valid free shipping zone
    By firehorse in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 28 Oct 2006, 05:39 PM

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