Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2012
    Posts
    60
    Plugin Contributions
    0

    Default Max weight restriction code for USPS Priority Mail Int Lrg Video box shipping option

    Greetings,

    I am trying to offer my international customers Priority Mail Int Lrg Video shipping option, but want to limit it to under 2 lbs. for the weight since the box isn't very large. I have tried this code, but when I tested an address from India it just showed me my other 3 options express, priority, exp guaranteed.

    Does anyone know what is wrong / if this can or can't be done? Thanks in advanced!
    www.heteromorphic.com/zencart

    // 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);
    */
    if ($type == 'Priority Mail Int Lrg Video' && $shipping_weight >= 2) {
    // skip Priority Mail Int Lrg Video on >= 2
    } else {
    $methods[] = array('id' => $type,
    'title' => $title,
    'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    }

    Thanks!

  2. #2
    Join Date
    Jul 2012
    Posts
    60
    Plugin Contributions
    0

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    oh also, my shipping estimator under the cart is duplicating all options showing them all twice in a row?

  3. #3
    Join Date
    Jul 2012
    Posts
    60
    Plugin Contributions
    0

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    I also tried the code with the full name of 'Priority Mail International Large Video Flat Rate Box**' too with no luck

  4. #4
    Join Date
    Jul 2012
    Posts
    60
    Plugin Contributions
    0

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    OK... I took out the restriction just to see if it would even quote that option, and it doesn't show up at all?
    Anyone aware of this issue?
    I have it checked under my shipping choices and have all my tares set to 0:0

    Any help greatly appreciated!

  5. #5
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    Can't help with your code but, In case you didn't know it, the Large Video 1096L box ships using International Small Flat Rate labels and the Small Flat International postage rate. The doesn't apply to domestic, just International.

    This USPS module will allow you to sort by weight or by volume. I use the volumes for all the flatrate boxes and modify the plain Priority Mail choice for the volume of the Large Video 1096L box for domestic and international.

    Since the module has not been updated, there is a glitch with USPS FirstClass International. The USPS changed the word package to parcel or parcel to package (cant remember which way) and that change caused first class international to break. Regional C FR boxes are not included either.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  6. #6
    Join Date
    Jul 2012
    Posts
    60
    Plugin Contributions
    0

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    Thanks! I have enabled the small flat rate to check and it appears to work w/the module I have. I have USPS RateV3 (January 22, 2012) - does the link above have a newer version than that / should I still update? Thanks!

  7. #7
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    The link is a totally different version for USPS calculations and is not supported like the RateV3 version.

    It has made our shipping life much easier by filtering (removing) options presented to the customer when the specific items in their cart will not physically fit within the box or class.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  8. #8
    Join Date
    Jul 2012
    Posts
    60
    Plugin Contributions
    0

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    OK... the code worked for the small flat rate box except it's still showing duplicates of both options so only ONE line disappears when I go over 2 lbs. Does anyone know why the options are duplicating and only one appears to be working properly?

    If you go here and add to cart: http://heteromorphic.com/zencart/ind...roducts_id=762
    that will be under 2 lbs. and you will see option for International Flat rate (pick any country on dropdown but US)

    Then add another product over 2 lbs to cart: http://heteromorphic.com/zencart/ind...roducts_id=769

    and only one of the flat rate box disappears?

    Any help greatly appreciated!

  9. #9
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    WOW, you're fast. I've never seen anyone go through the setup on that USPS module in that short a time span.

    Did you set it up to filter by weight, volume or neither? I've never used the "filter by weight" so probably won't be much help if thats what you're using.

    Did you install the sql patch?

    Did you remove the original USPS shipping files?

    I am not a coder so can only offer minimal advice.

    When I add the first item to my cart, select Australia, no shipping quotes appear.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  10. #10
    Join Date
    Jul 2012
    Posts
    60
    Plugin Contributions
    0

    Default Re: Max weight restriction code for Priority Mail Int Lrg Video box shipping option

    yeah, I couldn't get it to work so I reinstalled the other one for now since I have limited time right now to play w/it... but thanks b/c now I know that I can at least use the small flat rate option for the same price to my customers :)

 

 

Similar Threads

  1. Replies: 11
    Last Post: 30 Jul 2013, 08:13 PM
  2. Coding help needed for USPS weight restriction for shipping option
    By heteromorphic in forum Addon Shipping Modules
    Replies: 3
    Last Post: 9 Sep 2012, 12:50 AM
  3. USPS Priority Mail not an option
    By CTBob in forum Addon Shipping Modules
    Replies: 0
    Last Post: 11 Feb 2011, 08:31 PM
  4. USPS - Priority Mail Flat Rate Box setting?
    By giggles in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 30 Oct 2009, 03:05 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