If this is your first visit, check our documentation. To post, register or login.
Forums / Built-in Shipping and Payment Modules / Different shipping methods for different categories

Different shipping methods for different categories

Started by tylerd213 on 13 Mar 2008, 2:16 AM · Views: 107,885

Results 461 to 480 of 554
30 May 2012, 10:45 PM
#461
ajeh avatar

ajeh

Oba-san

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

Different shipping methods for different categories

Painted Hills NB:

"fix shipping method type to 2DA"
Oh yeah!!! This is me doing my Happy Dance!

Thanks for the update that you have this working now ... :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!

10 Jun 2012, 6:05 PM
#462
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

Hi Ajeh. I have a question: For a certain product, I want my shopping cart to inherently know that when a particular item is selected (a sticker ), that only envelope shipping method should be offered to the customer and not any other method. And that if the customer is buying an ice-skate from me and ALSO buys a sticker, that the envelope shipping option should be ignored completely because I will be putting the sticker in the box with the ice-skates (which is a shipping method that I got to work. And it has to be by weight as well because my "bladeholders" are a different weight than my ice-skates that I'm selling, and the same thing with my stickers - - which requires flatrate envelope and not a box. I had no idea what to do with zone rates. I'm shipping all over the world.

Shipping methods I am using (U.S.P.S.) :
Express Mail Int Flat Rate Box, Priority Mail International, Priority Mail Int Legal Flat Rate Env, First Class Mail Int Parcel, First Class Mail Int Letter.

My store is:
http://www.XtremeIceSkating.com/store

I am not a coder, so is there a way to make these adjustments by adjusting the shopping cart or do I need to seek out a php coder?

10 Jun 2012, 6:29 PM
#463
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

If I only buy a Sticker ... which of these are you wanting to use:

Shipping methods I am using (U.S.P.S.) :
Express Mail Int Flat Rate Box, Priority Mail International, Priority Mail Int Legal Flat Rate Env, First Class Mail Int Parcel, First Class Mail Int Letter

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!

11 Jun 2012, 3:03 AM
#464
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

If only buying a sticker, than I only want:

  • Priority Mail Int Legal Flat Rate Env
  • First Class Mail Int Letter

Or preferably, whichever is cheaper. But also, with my bladeholders and ice-skates, the shopping cart doesn't ask me the dimensions of the box I'm using. When I go to (https://www.usps.com), I test out the actual shipping costs by entering the dimensions as well as the package TYPE, and the weight. I would like this to be included in my shopping cart, or for at least my shopping cart to know that if a customer chooses to buy a small item like a sticker, than all other shipping methods should NOT be chosen - - only those that have to do with "Int Letter" or "Envelope."

11 Jun 2012, 3:15 AM
#465
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

On stickers, is the only stickher you sell the:
products_id=182

Or do you have other stickers? Do you plan on additional stickers in the future?

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!

11 Jun 2012, 4:48 AM
#466
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

Yes, the only stickers I am selling is: id=182. However, I may sell other products that can fit into an envelope such as screws and washers, and the shipping method constraints will require the same shipping constraints. But also... if a customer wants to buy ice-skates from me - - even if they buy stickers in the same order, I don't want the "envelope" or "legal letter" to be an available option, otherwise I will be stuck paying the customer's shipping because the customer is going to obviously choose the cheapest shipping method.

11 Jun 2012, 2:19 PM
#467
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

You could customize the shipping module:
/includes/modules/shipping/usps.php

and add the code in RED to skip the shipping type based on what the count is of the products tested for:

          $cost = preg_replace('/[^0-9.]/', '',  $cost);

// bof: skip products when not the only ones in cart
$cart_count = $_SESSION['cart']->count_contents();
$chk_products = 0;
$chk_products += $_SESSION['cart']->in_cart_check('products_id','182');
//$chk_products += $_SESSION['cart']->in_cart_check('products_id','XXX');
//echo '<br>Type: ' . $type . ' Title: ' . $title . ' cost: ' . $cost . ' cart count ' . $cart_count . 'exclude: ' . $chk_products . '<br>';
if ((($chk_products > 0 && $cart_count == $chk_products) && ($type != 'Priority Mail International Legal Flat Rate Envelope**' && $type != 'First-Class Mail International Letter**')) || (($chk_products > 0 && $cart_count != $chk_products) && ($type == 'Priority Mail International Legal Flat Rate Envelope**' || $type == 'First-Class Mail International Letter**'))) {
// skip this $type
//echo 'I skipped: ' . $type . '<br>';
} else {
//echo 'I did NOT skipped: ' . $type . '<br>';
          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );
}
// eof: skip products when not the only ones in cart

          // bof: sort by contributed by Marco B

To add another product, you can change the products_id XXX with the products_id you need and remove the comment marks // in front of the line:

//echo '<br>Type: ' . $type . ' Title: ' . $title . ' cost: ' . $cost . ' cart count ' . $cart_count . 'exclude: ' . $chk_products . '<br>';

To add more products_id, duplicate that line for each products_id that should be in an envelop when they are the only Products in the order ...

NOTE: First Class also has limitations based on weight ...

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!

12 Jun 2012, 12:49 AM
#468
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

Thank you for all your help so far, Ajeh.

There are 2 problems:

  1. When choosing to buy stickers plus something else, I get duplicate fields, expressed in the following manner:
  • Priority Mail International (6 - 10 business days)
  • Priority Mail International (6 - 10 business days)
  • Express Mail International Flat Rate Boxes (3 - 5 business days)
  • Express Mail International Flat Rate Boxes (3 - 5 business days)
  1. The shipping method "First Class Mail Int Letter" is not showing up for the stickers. The option is selected in module. Not sure if this has anything to do with the code. If not, I'll ask in the main forum.

Lastly, is there an easy way of telling the shipping module that if the customer buys only stickers, only sticker packaging is shown? I wonder if it's the same code but in reverse.

Here is what the code I pasted into the module:

// bof: skip products when not the only ones in cart
$cart_count = $_SESSION['cart']->count_contents();
$chk_products = 0;
$chk_products += $_SESSION['cart']->in_cart_check('products_id','182');
//$chk_products += $_SESSION['cart']->in_cart_check('products_id','XXX');

//echo '<br>Type: ' . $type . ' Title: ' . $title . ' cost: ' . $cost . ' cart count ' . $cart_count . 'exclude: ' . $chk_products . '<br>';
if ((($chk_products > 0 && $cart_count == $chk_products) && ($type != 'Priority Mail Int Flat Rate Env**' && $type != 'Priority Mail Int Padded Flat Rate Env**' && $type != 'First Class Mail Int Letter**')) || (($chk_products > 0 && $cart_count != $chk_products) && ($type == 'Priority Mail Int Flat Rate Env**' || $type == 'Priority Mail Int Padded Flat Rate Env**' || $type == 'First Class Mail Int Letter**'))) {
// skip this $type
//echo 'I skipped: ' . $type . '<br>';
} else {
//echo 'I did NOT skipped: ' . $type . '<br>';
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );
}
// eof: skip products when not the only ones in cart

12 Jun 2012, 1:45 AM
#469
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Make sure that you do not have this code in there twice:

          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );

The new code, replaces that old code ...

Could you post what you have in the Configuration ... Shipping/Packaging ...

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!

12 Jun 2012, 1:21 PM
#471
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

You have Tare Weight of 0:3 being added that adds 3lbs to the weight ...

Set that to 0:0 on both of your Tare Rates so the extra weight is not added ...

You also have the Maximum weight set to 20 rather than the default 50 this means that the packages will be broken into 20 lbs boxes, is this what you want?

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!

12 Jun 2012, 11:48 PM
#472
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

Ajeh:

You have Tare Weight of 0:3 being added that adds 3lbs to the weight ...

Set that to 0:0 on both of your Tare Rates so the extra weight is not added ...

You also have the Maximum weight set to 20 rather than the default 50 this means that the packages will be broken into 20 lbs boxes, is this what you want?

The maximum a box would ever weigh is 10 lb's. Most boxes would be about 7lb's. I want the shipping to be as cheap as possible, that is why I am not using UPS, and using USPS instead. I have adjusted the Tare Weight to: 0:0

12 Jun 2012, 11:55 PM
#473
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

Here is the new information I filled in:
http://www.xtremeiceskating.com/images/Packages_shipping2.jpg

I am curious as to why the shipping method "First Class Mail Int Letter" is not showing up in the checkout process. It shows in the module and it selected in the module. Any idea why? I want to use that method to send the stickers because it would be MUCH cheaper than sending an envelope. To send an envelope from the US to England would cost a flat rate of $16.75. That price is insane.

https://xtremeiceskating.com/store

12 Jun 2012, 11:59 PM
#474
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

Prolite:

Here is the new information I filled in:
http://www.xtremeiceskating.com/images/Packages_shipping2.jpg

I am curious as to why the shipping method "First Class Mail Int Letter" is not showing up in the checkout process. It shows in the module and it selected in the module. Any idea why? I want to use that method to send the stickers because it would be MUCH cheaper than sending an envelope. To send an envelope from the US to England would cost a flat rate of $16.75. That price is insane.

https://xtremeiceskating.com/store

Wait.. nevermind. The letter is showing up now lol. What you posted above WAS the fix. THANK YOU. Is there an easy way to make all the other shipping options go away when just stickers (or other light-weight items) are being sent?

13 Jun 2012, 2:24 AM
#475
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

What all shipping modules do you have installed? Look in the Modules ... Shipping ...

On the USPS when only stickers are in the cart, what should happen if someone from the US orders just the stickers?

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!

13 Jun 2012, 4:11 AM
#476
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

Ajeh:

What all shipping modules do you have installed? Look in the Modules ... Shipping ...

On the USPS when only stickers are in the cart, what should happen if someone from the US orders just the stickers?

I only have USPS installed.

If someone orders just the stickers, than the customer (whether from the US or other country), should only see the appropriate shipping method: "First Class Mail Int Letter" and "First Class Mail Int Parcel."

In the future though, I will be adding products that only belong in an envelope. Unfortunately, there are no shipping plugins that can handle the specificity of these product-specific processes (in the form of check boxes on each product description page). Maybe this could be suggested to the Zen Community for developer's to work on.

13 Jun 2012, 12:56 PM
#477
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

If you are only using USPS ... could you go to Modules ... Shipping ... and make sure that all shipping modules have a red icon except the USPS shipping module? You appear to have other shipping modules installed, such as Zone Rate zones ...

Then, can you click on USPS and copy and paste the settings in the right hand window here ...

For US shipping, are you only wanting for stickers the:
First-Class Mail

Stickers only:
Test an Order with just Stickers in the Cart and use a US address ... which of the shipping methods should show?

Test an Order with just Stickers in the Cart and use a Canada address ... which of the shipping methods should show?

Test an Order with just Stickers in the Cart and use a UK address ... which of the shipping methods should show?

Normal Product Only:
Test an Order with just a Normal Product in the Cart and use a US address ... which of the shipping methods should show?

Test an Order with just a Normal Product in the Cart and use a Canada address ... which of the shipping methods should show?

Test an Order with just a Normal Product in the Cart and use a UK address ... which of the shipping methods should show?

Stickers and a Normal Product:
Test an Order with Stickers and a Normal Product in the Cart and use a US address ... which of the shipping methods should show?

Test an Order with Stickers and a Normal Product in the Cart and use a Canada address ... which of the shipping methods should show?

Test an Order with Stickers and a Normal Product in the Cart and use a UK address ... which of the shipping methods should show?

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!

14 Jun 2012, 12:47 AM
#478
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

All shipping modules have been uninstalled. USPS shipping module information:
http://www.xtremeiceskating.com/images/USPS_shipping_settings.gif

The shipping/packaging settings have remained the same.

Shipping Methods:

Stickers only:
Test an Order with just Stickers in the Cart and use a US address ... which of the shipping methods should show?

First-Class Mail (2 - 5 days) 

Why is the price set to $1.95 when actual cost is 85¢? There's no "letter" option for domestic shipping.

Test an Order with just Stickers in the Cart and use a Canada address ... which of the shipping methods should show?

First-Class Mail International Letter

Test an Order with just Stickers in the Cart and use a GLOBAL (Except for Canada and US) address ... which of the shipping methods should show?

First-Class Mail International Letter

Normal Product Only:
Test an Order with just a Normal Product in the Cart and use a US address ... which of the shipping methods should show?

Parcel Post
Priority Mail

Test an Order with just a Normal Product in the Cart and use a Canada address ... which of the shipping methods should show?

First-Class Mail International Parcel
Priority Mail International

Test an Order with just a Normal Product in the Cart and use a GLOBAL (Except for Canada and US) address ... which of the shipping methods should show?

First-Class Mail International Parcel
Priority Mail International

Stickers and a Normal Product:
Test an Order with Stickers and a Normal Product in the Cart and use a US address ... which of the shipping methods should show?

Parcel Post
Priority Mail

Test an Order with Stickers and a Normal Product in the Cart and use a Canada address ... which of the shipping methods should show?

First-Class Mail International Parcel
Priority Mail International

Test an Order with Stickers and a Normal Product in the Cart and use a GLOBAL (Except for Canada and US) address ... which of the shipping methods should show?

First-Class Mail International Parcel
Priority Mail International
14 Jun 2012, 1:22 PM
#479
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

In the original USPS code you you will see:

          $cost = preg_replace('/[^0-9.]/', '',  $cost);

// add $this->usps_countries to title to test actual country
          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );

          // bof: sort by contributed by Marco B
          // Sort the options
          if (MODULE_SHIPPING_USPS_QUOTE_SORT != 'Unsorted') {

Change to read:

          $cost = preg_replace('/[^0-9.]/', '',  $cost);

// bof: skip products when not the only ones in cart
$cart_count = $_SESSION['cart']->count_contents();
$chk_products = 0;
$chk_products += $_SESSION['cart']->in_cart_check('products_id','115');
$chk_products += $_SESSION['cart']->in_cart_check('products_id','168');
//echo '<br>Type: ' . $type . ' Title: ' . $title . ' cost: ' . $cost . ' cart count ' . $cart_count . 'exclude: ' . $chk_products . '<br>';
if ( ( ($chk_products > 0 && $cart_count == $chk_products) && ($type != 'First-Class Mail International Letter**' && $type != 'FIRST CLASS')) || (($chk_products > 0 && $cart_count != $chk_products) && ($type == 'First-Class Mail International Letter**' || $type == 'FIRST CLASS')) || (($chk_products == 0) && ($type == 'First-Class Mail International Letter**' || $type == 'FIRST CLASS')) ) {
// skip it
//echo 'I skipped: ' . $type . '<br>';
} else {
//echo 'I did NOT skipped: ' . $type . '<br>';
          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );
}
// eof: skip products when not the only ones in cart

          // bof: sort by contributed by Marco B
          // Sort the options
          if (MODULE_SHIPPING_USPS_QUOTE_SORT != 'Unsorted') {

Test the 3 conditions again, and ensure all is working ...

What is the weight that you are testing on your stickers?

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!

16 Jun 2012, 6:35 PM
#480
prolite avatar

prolite

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Re: Different shipping methods for different categories

The weight I have on my stickers is 0.0625 ounces. The price should be at .85 cents, not $1.95.

The following are the ID's for regular shipping products (minus the stickers):
180 (Xtreme Ice Skate PRO-1)
181 (Bladeholder replacement set)
183 (Xtreme Ice Skate PRO-1 - no bladeholders)

The sticker ID is:
182 (stickers)

In the code you provided, I do not have any products with product ID as '115' or '168', but this is listed in the code. The shipping conditions did not work. Here is the code I inserted (I had to take out the extra shipping array, otherwise shipping methods would be duplicated):

$cost = preg_replace('/[^0-9.]/', '', $cost);

// bof: skip products when not the only ones in cart
$cart_count = $_SESSION['cart']->count_contents();
$chk_products = 0;
$chk_products += $_SESSION['cart']->in_cart_check('products_id','115');
$chk_products += $_SESSION['cart']->in_cart_check('products_id','168');
//echo '<br>Type: ' . $type . ' Title: ' . $title . ' cost: ' . $cost . ' cart count ' . $cart_count . 'exclude: ' . $chk_products . '<br>';
if ( ( ($chk_products > 0 && $cart_count == $chk_products) && ($type != 'First-Class Mail International Letter**' && $type != 'FIRST CLASS')) || (($chk_products > 0 && $cart_count != $chk_products) && ($type == 'First-Class Mail International Letter**' || $type == 'FIRST CLASS')) || (($chk_products == 0) && ($type == 'First-Class Mail International Letter**' || $type == 'FIRST CLASS')) ) {
// skip it
//echo 'I skipped: ' . $type . '<br>';
} else {
//echo 'I did NOT skipped: ' . $type . '<br>';
}
// eof: skip products when not the only ones in cart

// add $this->usps_countries to title to test actual country
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );

      // bof: sort by contributed by Marco B
      // Sort the options

And the conditions I need are the following:

Stickers only:
Test an Order with just Stickers in the Cart and use a US address:
First-Class Mail (2 - 5 days) - should be 85 cents instead of $1.95 (weight 0.0625 ounces - product ID: 182)

Test an Order with just Stickers in the Cart and use a Canada address:
First-Class Mail International Letter

Test an Order with just Stickers in the Cart and use a GLOBAL (Except for Canada and US) address:
First-Class Mail International Letter


Normal Product Only:
Test an Order with just a Normal Product in the Cart and use a US address:
Parcel Post
Priority Mail

Test an Order with just a Normal Product in the Cart and use a Canada address:
First-Class Mail International Parcel
Priority Mail International

Test an Order with just a Normal Product in the Cart and use a GLOBAL (Except for Canada and US) address:
First-Class Mail International Parcel
Priority Mail International


Stickers and a Normal Product:
Test an Order with Stickers and a Normal Product in the Cart and use a US address ... which of the shipping methods should show?
Parcel Post
Priority Mail

Test an Order with Stickers and a Normal Product in the Cart and use a Canada addres:
First-Class Mail International Parcel
Priority Mail International

Test an Order with Stickers and a Normal Product in the Cart and use a GLOBAL (Except for Canada and US) address:
First-Class Mail International Parcel
Priority Mail International

If you could do this, that would be a great help!