Thread: USPS Question

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37
  1. #1
    Join Date
    Aug 2009
    Posts
    41
    Plugin Contributions
    0

    Default USPS Question

    Hey guys,

    I just have one quick question!

    I made a store for someone in the US and I'm located in Ireland. They use UPS for all US orders and USPS for everyone else. When I check how much it is to ship to Ireland its always $25.95 no matter what weight. This is using flat rate envelope. Is this due to zen-cart knowing if they'll actually fit. If so should I disable using this carrier method?

    Thanks!

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

    Default Re: USPS Question

    That is the same quote USPS gives ... up to about 65 or so pounds ...

    However, there is nothing in Zen Cart to manage dimensions ... so that can be an issue ...
    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
    Aug 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: USPS Question

    Thanks for the reply Linda! (nice irish name btw )

    Just one more question. Is there any code I can add to the usps module that checks if there is a product from I.D 11 and 12 (in my case) and automatically gets rid of Express Mail International flat rate envelope from the list of available shipping methods?

    I tried one from this site but it didnt work.

    Thanks a million!

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

    Default Re: USPS Question

    A products_id 11 and 12 or something from a categories_id 11 and 12 and if a categories_id are those the master_categories_id?
    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
    Aug 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: USPS Question

    It's the top categories.



    Here's a picture to help!

    Thanks

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

    Default Re: USPS Question

    You would add the code to:
    Code:
            $methods = array();
            $size = sizeof($uspsQuote);
            for ($i=0; $i<$size; $i++) {
              list($type, $cost) = each($uspsQuote[$i]);
    
              // BOF: UPS USPS
              $title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
              if(in_array('Display transit time', explode(', ', MODULE_SHIPPING_USPS_OPTIONS)))    $title .= $transittime[$type];
              /*
              $methods[] = array('id' => $type,
              'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
              'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
              */
              global $cart;
    //          $chk_cats = $_SESSION['cart']->in_cart_check('master_categories_id','11')  + $_SESSION['cart']->in_cart_check('master_categories_id','12');
              echo 'shipping ' . $type . ' chk_cats: ' . $chk_cats . '<br>';
              if ($type == 'Express Mail International (EMS) Flat-Rate Envelope' && $chk_cats > 0) {
                // skip shipping
              } else {
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
              }
            }
    The commented echo is if you need to see the name of the shipping type for testing other settings ... just uncomment and it will display on the shipping ... note: it will look pretty ugly but it is helpful ...
    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
    Aug 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: USPS Question

    I'm a PHP retard so excuse the stupidity! When I put the code into usps.php this came up on top of the site.

    shipping Global Express Guaranteed chk_cats:
    shipping Express Mail International (EMS) chk_cats:
    shipping Express Mail International (EMS) Flat-Rate Envelope chk_cats:
    shipping Priority Mail International chk_cats:
    shipping Priority Mail International Flat-Rate Envelope chk_cats:
    shipping First Class Mail International Large Envelope chk_cats:

    I thought it only comes up if I remove the // from the code?

    Thanks again!

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

    Default Re: USPS Question

    sorry ... that was me ...

    change where the // comment mark is ... silly me ...
    Code:
              $chk_cats = $_SESSION['cart']->in_cart_check('master_categories_id','11')  + $_SESSION['cart']->in_cart_check('master_categories_id','12');
    //          echo 'shipping ' . $type . ' chk_cats: ' . $chk_cats . '<br>';
    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
    Aug 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: USPS Question

    Thanks for this Ajeh.

    Just one more question. The code is fine the way it is but is there any way to get rid of Express Mail International (EMS) Flat-Rate Envelope and Priority Mail International Flat-Rate Envelope for all products in ID 11 and 12 like the photo and First Class Mail International Package for ID 42 (when click ID 11) and ID 43 when you click ID 12?

    Hope I make sense!

    Thanks a million for all your help!!!!

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

    Default Re: USPS Question

    Instead of master_categories_id check for products_id ...
    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!

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. usps question
    By unmasked in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 21 Oct 2010, 07:13 AM
  2. USPS question
    By GraniteMan44 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 8 Apr 2008, 04:35 AM
  3. USPS Question
    By Tulameen in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Oct 2006, 07:41 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