Forums / Addon Shipping Modules / USPS January 17 2016 K8 - Support Quirks

USPS January 17 2016 K8 - Support Quirks

Views: 56,854

Results 61 to 80 of 143
6 Feb 2016, 8:54 PM
#61
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

USPS January 17 2016 K8 - Support Quirks

LOL! Well, if I didn't do all this I wouldn't have found the /logs directory wasn't working!
Thank you for helping me out Ajeh. Sending you a donation :)

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

6 Feb 2016, 9:12 PM
#62
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

You are most welcome ... and thanks for the coffee and donuts!! We really appreciate the support! :P

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!

6 Feb 2016, 9:20 PM
#63
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: USPS January 17 2016 K8 - Support Quirks

You're most welcome!
I have another question. Is it possible to restrict options on a per product or master category?
Currently I have it so only certain products can be shipped on Small Flat Rate, because physically other products don't fit on this little box, but I have a product that can only ship via Parcel within the US (contains alcohol). Is it possible to add an if statement that if product X is in the shopping cart then only Parcel or Ground options are displayed?

These are the statements I have to block Small Flat Rate

if (true) {
  $chk_cart = 0;
  //Categories
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','5');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','18');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','25');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','27');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','29');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','30');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','31');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','32');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','34');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','35');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','43');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','44');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','46');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','88');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','92');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','101');
  $chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','103');
  //Products
  $chk_cart += $_SESSION['cart']->in_cart_check('products_id','264');
  $chk_cart += $_SESSION['cart']->in_cart_check('products_id','457');
  $chk_cart += $_SESSION['cart']->in_cart_check('products_id','463');
  }
if (true) {
  if ($chk_cart > 0 && $type == 'Priority MailTM Small Flat Rate Box') {
//  echo 'USPS $type: ' . $type . ' $chk_cart:' . $chk_cart . '<br>';
    continue;
  }
}

Thanks a bunch :smile:

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

6 Feb 2016, 9:46 PM
#64
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

You could add the code in RED:

$show_hiddenCost = '';
[B]// bof: only show Parcel & Ground if products_id 6 is in the cart
//echo 'USPS $type_rebuilt: ' . $type_rebuilt . '<br>';
$chk_parcel_ground = 0;
$chk_parcel_ground += $_SESSION['cart']->in_cart_check('products_id','6');
if ($chk_parcel_ground > 0 && ($type_rebuilt != 'Media Mail Parcel' && $type_rebuilt != 'USPS Retail GroundTM')) {
  continue;
}
// eof: only show Parcel & Ground if products_id 6 is in the cart
[/B]          $methods[] = array('id' => $type_rebuilt,

That would only show Media Mail Parcel and USPS Retail GroundTM when products_id 6 is in the cart ...

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 Feb 2016, 12:19 AM
#65
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: USPS January 17 2016 K8 - Support Quirks

Thank you!
But it seems not to be working (?)
No Parcel or ground options show at all on my test. Is ground not available to all addresses?

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

7 Feb 2016, 1:05 AM
#66
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

The Media Mail Parcel should show regardless of where the shipping is, but the USPS Retail GroundTM is dependent on the Zone you are shipping to ...

For example, I cannot ship from Ohio to Ohio and see the USPS Retail GroundTM, but I can ship from Ohio to Florida and see the USPS Retail GroundTM ...

Have you a specific Product that you are trying this with, that we can look at?

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 Feb 2016, 1:10 AM
#67
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

NOTE: you can also force USPS Retail GroundTM, but then you cannot get the other methods of shipping quoted ...

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 Feb 2016, 1:16 AM
#68
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: USPS January 17 2016 K8 - Support Quirks

We don't use Media Parcel (isn't that for books, magazines, etc?)
But the test I'm doing is to ship from Michigan to Georgia and it doesn't show at all.
Is it possible to (successfully) clone the module that way pushing Parcel only on that product?
I think would be the only solution, since USPS has made it so hard to use Parcel Nationwide.

Sorry, yes, this is the product. When this product is in the shopping cart, all other shipping options need to be removed and only ship via ground the entire order.

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

7 Feb 2016, 1:58 AM
#69
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

Edit that USPS shipping module and uncomment the echo:

// bof: only show Parcel & Ground if products_id 6 is in the cart
[B]echo 'USPS $type_rebuilt: ' . $type_rebuilt . '<br>';[/B]

On the methods echoed, which do you want to show when this product is in the Cart?

Have you an URL to this Product that you only want to limit the shipping methods to 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!

7 Feb 2016, 2:23 AM
#70
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

If this is the product you want to force the USPS Retail GroundTM to be the only USPS shipping method, then the code I gave you above is wrong ...

Remove that code and use this code instead:

    $usps_groundonly = 'false';
//    $usps_groundonly = ($_SESSION['cart']->in_cart_check('products_groundonly','1') ? 'true' : 'false');
[B]// bof: only show USPS Retail GroundTM if products_id 114 is in the cart
//echo 'USPS $type_rebuilt: ' . $type_rebuilt . '<br>';
$chk_ground = 0;
$chk_ground += $_SESSION['cart']->in_cart_check('products_id','6');
if ($chk_ground > 0) {
  $usps_groundonly = 'true';
}
// eof: only show USPS Retail GroundTM if products_id 114 is in the cart
[/B]    if ($usps_groundonly == 'false') {

Now if that products_id 114 is in the cart, only USPS Retail GroundTM will show regardless of where in the US it is being shipped ...

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 Feb 2016, 4:54 AM
#71
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: USPS January 17 2016 K8 - Support Quirks

You're brilliant!!! It woks! Thank you so much!!!

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

7 Feb 2016, 2:03 PM
#72
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

Thanks for the update that this is working for ... :smile:

Sorry for the mis-understanding I wasn't fully understanding just what you were needing this to do then I recalled the setting to for USPS to always use USPS Retail GroundTM that I had built in and that you could customize that further than just on/off but could actually set a condition on it ...

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 Mar 2016, 10:07 PM
#73
bodini avatar

bodini

New Zenner

Join Date:
Jul 2007
Posts:
43
Plugin Contributions:
0

Re: USPS January 17 2016 K8 - Support Quirks

Ajeh:

One other question. Your logs say your USPS settings are set to Online but the images you attached are for Retail ... does that difference account for anything?

I'm sorry I never came back to this (until now). Anyway, after lots of transactions that were off about $0.75 I decided to look at it again today. Yes, flipping that switch did fix the problem. I'm still not sure what the difference is in that mode, but I see in the log that it was choosing "<CommercialPostage>" instead of "<Postage>". That was the difference.

16 Mar 2016, 9:52 PM
#74
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: USPS January 17 2016 K8 - Support Quirks

How can Product Weight be globally set to 0.1 LBS by default? Thx

Cheers!
v2.2.1

16 Mar 2016, 9:56 PM
#75
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

You want ALL products changed to 0.1 LBS or just for when adding new products?

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 Mar 2016, 10:25 PM
#76
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: USPS January 17 2016 K8 - Support Quirks

Ajeh:

You want ALL products changed to 0.1 LBS or just for when adding new products?

Good question.

Reset All Products to 0.1 LBS and then by default All New Products auto set to 0.1 LBS.

Thus, by entering any other value would override the default weight.

Cheers!
v2.2.1

16 Mar 2016, 10:33 PM
#77
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

To change ALL products to 0.1 in Install SQL Patches:

UPDATE products SET products_weight = 0.1;

Change the collect_info.php line for weight to:

                       'products_weight' => '0.1',

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 Mar 2016, 10:42 PM
#78
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: USPS January 17 2016 K8 - Support Quirks

Brilliant! Thx

Cheers!
v2.2.1

16 Mar 2016, 11:10 PM
#79
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

Thanks for the update that this worked for you ...

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!

21 Mar 2016, 6:54 PM
#80
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: USPS January 17 2016 K8 - Support Quirks

USPS module does not recognize 16oz can be shipped 1st Class Domestic.

I have set 1oz product weight as 0.06 lbs. USPS module 1st Class max weight as 0.99 or even 1 lbs.

Up to 12 oz, it shows 1st Class.

14oz still triggers no 1st class, only Priority on up.

Can we tweak this or is USPS controlling this?

THX

Cheers!
v2.2.1