Forums / Built-in Shipping and Payment Modules / Max weight for first class mail international

Max weight for first class mail international

Locked

Views: 3,563

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
16 Feb 2010, 4:45 PM
#1
riosouza avatar

riosouza

New Zenner

Join Date:
Nov 2008
Posts:
19
Plugin Contributions:
0

Max weight for first class mail international

Hi there,
I have the First Class Mail available; I would like to limit the weight for this method to 1lb (16oz) for International First Class Mail only.
The reason is because many international customers select the lowest shipping method, not realizing that is not trackable and also the slowest method.
It generates lots of e-mails with complaints and unhappy customers.
Any help with this change will be very much appreciated.

16 Feb 2010, 11:26 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Max weight for first class mail international

You might look at this thread:
http://www.zen-cart.com/forum/showthread.php?t=86717

post #5, I believe it is, shows a way to alter the First Class ...

You could adapt that for what you are wanting ...

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!

17 Feb 2010, 4:05 AM
#3
riosouza avatar

riosouza

New Zenner

Join Date:
Nov 2008
Posts:
19
Plugin Contributions:
0

Re: Max weight for first class mail international

Hi Linda,
I appreciate the input.
It worked beautifully with First Class Mail, I changed to First Class International package, but it does not work, see what I did.

    $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);
      */
      if ($type == 'First Class Mail Int Package' && $shipping_weight >= .6249) {
        // skip First Class Mail Int Package on >= .6249
      } else {
      $methods[] = array('id' => $type,
                         'title' => $title,
                         'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
17 Feb 2010, 4:18 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Max weight for first class mail international

You have to use the right spelling for what the $type will be:

First-Class Mail International Package
Add this line above your IF so you can see them ...

echo 'USPS type: ' . $type . '<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!

17 Feb 2010, 5:44 AM
#5
riosouza avatar

riosouza

New Zenner

Join Date:
Nov 2008
Posts:
19
Plugin Contributions:
0

Re: Max weight for first class mail international

Linda you are awesome!!!! :clap:

Thank you!

17 Feb 2010, 5:49 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Max weight for first class mail international

Glad to hear that this worked for you ... thanks for the update ... :smile:

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!