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

    Default Use UPS XML and Table Rates

    Hello,

    I am using zen cart 1.5. Have an unusual request.

    I have a client who has this site http://www.domo-online.com/Outboard-...oil-ezp-1.html

    They sell oil. In drums and gallons.

    Currently they are setup with the UPS XML module. It works great. BUT if the customer orders a Drum they want the website to use the table rates (which I can setup) so that it will charge them freight based on the state and product they ordered. Each drum has a different rate to ship to states.

    The challenge is that I need to account for people ordering drums and gallons--so combine the two totals. I know I can check to see if they ordered an item from the "drum" category but they also have the 'drums' listed under other categories--linked.

    I think I would need to check if they ordered a certain "product number" and if so then get the table rate (based on which product they ordered) then add it to the UPS total

    any help would be great, not really sure how to do this. I understand the logic.

  2. #2
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Use UPS XML and Table Rates

    Not quite as unusual as one might think. I've thought a little too much about this exact same scenario.

    If a customer orders a product requiring freight and a product which can ship via parcel... could the store just send both products together via freight? Not ideal as it would be a little higher in cost... but at least the website would provide a shipping estimate without too much additional work. If the store wanted they could also add a statement to the checkout letting people know the actual shipping cost may be less (and they can call / email / contact for a final shipping quote). And if the store is doing payment authorization - you can typically request a lower capture amount than the authorization amount - so in the end the customer can be charged just for the real shipping cost. Again not ideal, but an easy change.

    I suspect to tackle this the way the store wants, one would have to build a custom shipping module which understands different shipping carriers (table and UPS), which products can be shipped by which carrier, builds individual quotes for each carrier, adds the individual quotes together, and would probably not be a bad idea for the module to somehow save the shipping method + cost for each quote (and contained products) so it can later be pulled up from the admin (for shipping / invoicing purposes). Quite a bit of work, but fits the needs.

    Maybe someone else has some alternative ideas...
    Last edited by lhungil; 20 Dec 2012 at 08:25 AM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #3
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Use UPS XML and Table Rates

    Thank you, I thought there would be a way to just edit the ups module to check the flat rate table option and add them together

  4. #4
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Use UPS XML and Table Rates

    any other ideas out there on how to edit the existing modules to achieve this?

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

    Default Re: Use UPS XML and Table Rates

    This is actually not as hard as you think ...

    If you could provide a few more details ... I can tell you how to do this ...

    When an Order is made, what specifically can be used as an indicator of Products that can ONLY use Table Rates ...

    Example, would the master_categories_id of a Product indicate if the Product can go via UPS or Table Rate?
    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!

  6. #6
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Use UPS XML and Table Rates

    Quote Originally Posted by Ajeh View Post
    This is actually not as hard as you think ...

    If you could provide a few more details ... I can tell you how to do this ...

    When an Order is made, what specifically can be used as an indicator of Products that can ONLY use Table Rates ...

    Example, would the master_categories_id of a Product indicate if the Product can go via UPS or Table Rate?
    Thank you that would be great. I could use a master category but that would cause a problem since the "drums" are in more than one category. Would it be possible to use product id#'s? That would be best since there isnt' really a specific category that would ALL go the table rate

    thank you

  7. #7
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Use UPS XML and Table Rates

    Actually it looks like I will need to use the "zone rates" module since it will charge a different rate depending on the state they are in

    thanks

  8. #8
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Use UPS XML and Table Rates

    one last question. Would this module work with zen cart 1.5 http://www.zen-cart.com/showthread.p...t=zones+tables

    I need to split up zones if they order a drum. Each zone has 6 states and the rate is different for each zone..

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

    Default Re: Use UPS XML and Table Rates

    Let's say you have 3 master_category_id values for the specific Categories that are no suppose to use UPS ...

    You can test for these Products by using in the file:
    /includes/modules/shipping/upsxml.php

    Add the code in RED and set the master_categories_id to the Categories that you do not want to use the UPS shipping for ... if you need more Categories, just add additional lines for them ...

    Code:
    // bof: test for not allowed categories 10, 12 and 15
          if (!IS_ADMIN_FLAG) {
            $chk_cat = 0;
            // check how many Products are in the cart for master_categories_id 10 and 12
            $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','10');
            $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','12');
            $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','15');
            // if any are found turn off the shipping module
            if ($chk_cat > 0) {
              $this->enabled = false;
            }
          }
    // eof: test for not allowed categories 10, 12 and 15
          if (($this->enabled == true) && ((int)MODULE_SHIPPING_UPSXML_RATES_ZONE > 0)) {
    then, whether you use the Table Rate table or another shipping module, you can use similar code and just change the test ...
    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
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Use UPS XML and Table Rates

    That will effectively disable a shipping method for the order if it is not applicable based upon master category id... I think part of the OPs request was to have one order with products requiring different shipping methods (UPS / table / etc) and have a shipping quote returned for all items in the order (add together quotes from all necessary methods)... but maybe I was wrong?
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. UPS discounted rates not showing in UPS XML
    By cspan27 in forum Addon Shipping Modules
    Replies: 51
    Last Post: 27 Jun 2016, 03:52 PM
  2. UPS XML suddenly not returning calculated rates
    By abcisme in forum Addon Shipping Modules
    Replies: 2
    Last Post: 24 Apr 2012, 11:49 PM
  3. XML API for UPS Negotiated Rates - HELP!!!
    By tat2nu in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 25 Jun 2009, 07:21 PM
  4. XML UPS strange rates and limited shipping options
    By ejeffay in forum Built-in Shipping and Payment Modules
    Replies: 20
    Last Post: 2 Jun 2008, 02:14 AM

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