Zen Cart Logo
Forums / Addon Shipping Modules / USPS Shipping Module [Support Thread]

USPS Shipping Module [Support Thread]

Sticky

Views: 77,349

Results 361 to 380 of 447
2 Mar 2024, 11:34 PM
#361
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

USPS Shipping Module [Support Thread]

lat9:

... and what are "the statements that should be able to find it"?

I'm still using the old usps.php module, since it includes filters that I set up years ago. I have not been able to figure out how to add those filters to the new code, or I'd have already done that. I'll list a couple of lines of the code below, but it is working just fine for every single product id that I add, except for one. The only thing I can think of is that there is some invisible character in the product id that's causing it not to be recognized. I've confirmed that I can substitute any other product id in our inventory, and the code does as it always has done for those id's, just not for this one particular item.

//bof: example to block USPS PriorityMailTM Flat Rate Padded Envelope when certain products are in the cart
if (true) {
  $chk_cart_env = 0;
  $chk_cart_env += $_SESSION['cart']->in_cart_check('master_categories_id','1'); // Golden paste
  $chk_cart_env += $_SESSION['cart']->in_cart_check('master_categories_id','2'); // spices
  $chk_cart_env += $_SESSION['cart']->in_cart_check('master_categories_id','3'); // accessories
  $chk_cart_env += $_SESSION['cart']->in_cart_check('master_categories_id','5'); // livestock feed  
  $chk_cart_env += $_SESSION['cart']->in_cart_check('master_categories_id','10'); // oils
  $chk_cart_env += $_SESSION['cart']->get_quantity('76') > 0;  // original bar
  $chk_cart_env += $_SESSION['cart']->get_quantity('78') > 0;  // ginger bars
  $chk_cart_env += $_SESSION['cart']->get_quantity('150') > 0;  // One of each of the turmeric bars
  $chk_cart_env += $_SESSION['cart']->get_quantity('166') > 0;  // ChickiBams box of 20 
  $chk_cart_env += $_SESSION['cart']->get_quantity('167') > 0;  // WhamBams box of 20
  $chk_cart_env += $_SESSION['cart']->get_quantity('168') > 0;  // GingiBams box of 20  
  $chk_cart_env += $_SESSION['cart']->get_quantity('161') > 0;  // PawSkin   
  $chk_cart_env += $_SESSION['cart']->get_quantity('171') > 0;  // Snack Pack

This works to prevent the customer from choosing a flat rate padded envelope for every single product code except the last one in the list. No matter what I do, that one is being ignored. I need to know what product id the code is actually finding there so hopefully I can tell why it's falling through the last statement with a zero value when the quantity is greater than zero. And yes, I'm aware that there is no ending curly brace, This is just a snippet.

4 Mar 2024, 8:29 PM
#363
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

lat9:

That functionality, in more current versions of USPS, is available via a site-specific observer's processing. See https://github.com/lat9/usps/blob/K11j/extras/includes/classes/observers/auto.usps_overrides.php for an example

Yes, I know that, but I have never been able to make it work. The only way I've been able to manage the appropriate size shipping service for our products is to stay with the existing working code. I just need to know what variable to look at to see what Zencart thinks the product ID is here.

4 Mar 2024, 9:52 PM
#364
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

HeleneWallis:

Yes, I know that, but I have never been able to make it work. The only way I've been able to manage the appropriate size shipping service for our products is to stay with the existing working code. I just need to know what variable to look at to see what Zencart thinks the product ID is here.
You'd just follow the "pattern" in that extras file, using (most likely)

$_SESSION['cart']->in_cart_check('master_categories_id', {product-id to be checked});
5 Mar 2024, 6:36 PM
#365
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

lat9:

You'd just follow the "pattern" in that extras file, using (most likely)

$_SESSION['cart']->in_cart_check('master_categories_id', {product-id to be checked});


That just returns a zero, since there is no master category with that number.  I don't see how it could work, since I'm not looking at a master category of 171, but a product id of 171.
5 Mar 2024, 6:59 PM
#366
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,962
Plugin Contributions:
8

Re: USPS Shipping Module [Support Thread]

HeleneWallis:

That just returns a zero, since there is no master category with that number. I don't see how it could work, since I'm not looking at a master category of 171, but a product id of 171.

try:

$_SESSION['cart']->in_cart_check('products_id', {product-id to be checked});

best.

6 Mar 2024, 5:54 PM
#367
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

carlwhat:

try:

$_SESSION['cart']->in_cart_check('products_id', {product-id to be checked});

> 
> best.

That is giving me the quantity of that product number in the cart, which I also needed to know. But not the actual product number itself. But it does confirm that the software is seeing '171' as the product ID, because it returns the correct quantity. So I am still totally stumped as to why this is happening:

echo $_SESSION['cart']->get_quantity('171'); // RETURNS ZERO
echo $_SESSION['cart']->in_cart_check('products_id', '171'); // RETURNS 1, WHICH IS CORRECT


The first comparison works for every single other product id in our inventory, but not for the one with an id of 171. That's why I was trying to find out what the code was actually seeing there. The second statement confirms that it is seeing 171. I can use the second comparison as a workaround, but the first one ought to work.
6 Mar 2024, 6:44 PM
#368
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,962
Plugin Contributions:
8

Re: USPS Shipping Module [Support Thread]

looking at the code is always a good idea. in this case, there is useful info in the documentation of the code.

the following snippet is from:

includes/classes/shopping_cart.php

/**
     * Get the quantity of an item in the cart
     * NOTE: This accepts attribute hash as $products_id, such as: 12:a35de52391fcb3134
     * ... and treats 12 as unique from 12:a35de52391fcb3134
     * To lookup based only on prid (ie: 12 here) regardless of the attribute hash, use another method: in_cart_product_total_quantity()
     *
     * @param int|string $uprid product ID of item to check
     * @return int|float the quantity of the item
     */
    public function get_quantity($uprid)

i would use the method:

in_cart_product_total_quantity()

instead of

get_quantity()

and see if that provides the desired results.

best.

9 Mar 2024, 4:16 PM
#369
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

carlwhat:

looking at the code is always a good idea. in this case, there is useful info in the documentation of the code.

the following snippet is from:

includes/classes/shopping_cart.php

/**
* Get the quantity of an item in the cart
* NOTE: This accepts attribute hash as $products_id, such as: 12:a35de52391fcb3134
* ... and treats 12 as unique from 12:a35de52391fcb3134
* To lookup based only on prid (ie: 12 here) regardless of the attribute hash, use another method: in_cart_product_total_quantity()
*
* @param int|string $uprid product ID of item to check
* @return int|float the quantity of the item
*/
public function get_quantity($uprid)

> 
> i would use the method:
> 
> in_cart_product_total_quantity()
> 
> instead of
> 
> get_quantity()
> 
> and see if that provides the desired results.
> 
> best.

Thank you, that is working. 

I know I have to get the newer code set up, but I simply do not have time to do it, and as long as this is working for now, it will have to do.
9 Mar 2024, 8:40 PM
#370
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Today we noticed intermittent issues of getting: "Your order's details have changed. Please review the current values and re-submit." Reloading the page or changing the shipping method will let the order go through. Only recent changes were upgrading USPS from K11i to K11j (I typed in the password), sitemap from 3.99 to 4, GPSF from 1.0.0 to 1.0.1, and edit orders from 4.7.0beta2 to 4.7.0 released. It happens using cashiers check / money order, so not a payment module issue.

Guessing USPS API issue? Anyone else seeing this?

9 Mar 2024, 8:52 PM
#371
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

I turned on OCP debug. and go the following. Those decimals look insane. Beyond that, I can't make any sence of whats happening.
2024-03-09 14:45:25 checkout_one: CHECKOUT_ONE_SHIPPING_CHECK (usps_USPS Ground AdvantageTM)
[{"id":"usps","module":"United States Postal Service (1 Boxes) (0 lbs, 12 oz)","methods":[{"id":"USPS Ground AdvantageTM","title":"USPS Ground Advantage™","cost":8.5,"insurance":0},{"id":"Priority MailRM","title":"Priority Mail®","cost":11.25,"insurance":0},{"id":"Priority Mail ExpressRM","title":"Priority Mail Express®","cost":36.4500000000000028421709430404007434844970703125,"insurance":0}],"tax":0,"icon":"<img src="includes/templates/template_default/images/icons/shipping_usps.gif" title="United States Postal Service" alt="(image for) United States Postal Service" width="50" height="13">"}]
["usps_USPS Ground AdvantageTM","usps_Priority MailRM","usps_Priority Mail ExpressRM"]
2024-03-09 14:45:25 checkout_one: CHECKOUT_ONE_AFTER_SHIPPING_QUOTES
{"id":"usps_USPS Ground AdvantageTM","title":"United States Postal Service (1 Boxes) (0 lbs, 12 oz) (USPS Ground Advantage™)","cost":8.5,"extras":""}order::__set_state(array(
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
'attachArray' =>
array (
),
'bestSellersUpdate' => NULL,
'billing' =>
array (
'firstname' => 'Todd',
'lastname' => 'Jordan',
'company' => NULL,
'street_address' => '801 NW South Outer Rd.',
'suburb' => '',
'city' => 'Blue Springs',
'postcode' => '64015',
'state' => 'Missouri',
'state_code' => 'MO',
'zone_id' => '36',
'country' =>
array (
'id' => '223',
'title' => 'United States',
'iso_code_2' => 'US',
'iso_code_3' => 'USA',
),
'country_id' => '223',
'format_id' => 7,
),
'content_type' => 'physical',
'customer' =>
array (
'firstname' => 'todd',
'lastname' => 'jordan',
'company' => NULL,
'street_address' => '801 NW South Outer Rd.',
'suburb' => '',
'city' => 'Blue Springs',
'postcode' => '64015',
'state' => 'Missouri',
'state_code' => 'MO',
'zone_id' => '36',
'country' =>
array (
'id' => '223',
'title' => 'United States',
'iso_code_2' => 'US',
'iso_code_3' => 'USA',
),
'format_id' => 7,
'telephone' => '',
'email_address' => '[email protected]',
),
'delivery' =>
array (
'firstname' => 'Todd',
'lastname' => 'Jordan',
'company' => NULL,
'street_address' => '801 NW South Outer Rd.',
'suburb' => '',
'city' => 'Blue Springs',
'postcode' => '64015',
'state' => 'Missouri',
'state_code' => 'MO',
'zone_id' => '36',
'country' =>
array (
'id' => '223',
'title' => 'United States',
'iso_code_2' => 'US',
'iso_code_3' => 'USA',
),
'country_id' => '223',
'format_id' => 7,
),
'doStockDecrement' => NULL,
'extra_header_text' => NULL,
'email_low_stock' => NULL,
'email_order_message' => NULL,
'info' =>
array (
'order_status' => '1',
'currency' => 'USD',
'currency_value' => '1.000000',
'payment_method' => '',
'payment_module_code' => '',
'coupon_code' => '',
'shipping_method' => 'United States Postal Service (1 Boxes) (0 lbs, 12 oz) (USPS Ground Advantage™)',
'shipping_module_code' => 'usps_USPS Ground AdvantageTM',
'shipping_cost' => 8.5,
'subtotal' => 64.0,
'shipping_tax' => 0,
'tax' => 3.5040000000000048885340220294892787933349609375,
'total' => 76.0040000000000048885340220294892787933349609375,
'tax_groups' =>
array (
'MO TAX 5.475%' => 3.5040000000000048885340220294892787933349609375,
),
'comments' => '',
'ip_address' => '73.67.37.4 - 73.67.37.4',
),
'orderId' => NULL,
'products' =>
array (
0 =>
array (
'qty' => 8.0,
'name' => '2024 European Rainbow Emoji Pez Loose SOS',
'model' => '',
'price' => '8.0000',
'tax' => 5.47500000000000763833440942107699811458587646484375,
'tax_groups' =>
array (
'MO TAX 5.475%' => 5.47500000000000763833440942107699811458587646484375,
),
'final_price' => 8.0,
'onetime_charges' => 0,
'weight' => 0.08000000000000000166533453693773481063544750213623046875,
'products_priced_by_attribute' => '0',
'product_is_free' => '0',
'products_discount_type' => '0',
'products_discount_type_from' => '0',
'id' => 8538,
'rowClass' => 'rowEven',
'products_weight' => 0.08000000000000000166533453693773481063544750213623046875,
'products_virtual' => 0,
'product_is_always_free_shipping' => 0,
'products_quantity_order_min' => 1.0,
'products_quantity_order_units' => 1.0,
'products_quantity_order_max' => 0.0,
'products_quantity_mixed' => 1,
'products_mixed_discount_quantity' => 1,
'tax_description' => 'MO TAX 5.475%',
),
),
'products_ordered' => NULL,
'products_ordered_attributes' => NULL,
'products_ordered_html' => NULL,
'queryReturnFlag' => NULL,
'send_low_stock_emails' => NULL,
'statuses' =>
array (
),
'total_cost' => NULL,
'total_tax' => NULL,
'total_weight' => NULL,
'totals' =>
array (
),
'use_external_tax_handler_only' => false,
)){"messages":[]}[{"id":"usps","module":"United States Postal Service (1 Boxes) (0 lbs, 12 oz)","methods":[{"id":"USPS Ground AdvantageTM","title":"USPS Ground Advantage™","cost":8.5,"insurance":0},{"id":"Priority MailRM","title":"Priority Mail®","cost":11.25,"insurance":0},{"id":"Priority Mail ExpressRM","title":"Priority Mail Express®","cost":36.4500000000000028421709430404007434844970703125,"insurance":0}],"tax":0,"icon":"<img src="includes/templates/template_default/images/icons/shipping_usps.gif" title="United States Postal Service" alt="(image for) United States Postal Service" width="50" height="13">"}]
2024-03-09 14:45:26 checkout_one: CHECKOUT_ONE_AFTER_ORDER_TOTAL_PROCESSING
order_total::__set_state(array(
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
'modules' =>
array (
0 => 'ot_subtotal.php',
1 => 'ot_coupon.php',
2 => 'ot_insurance.php',
3 => 'ot_tax.php',
4 => 'ot_shipping.php',
5 => 'ot_total.php',
),
))order::__set_state(array(
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
'attachArray' =>
array (
),
'bestSellersUpdate' => NULL,
'billing' =>
array (
'firstname' => 'Todd',
'lastname' => 'Jordan',
'company' => NULL,
'street_address' => '801 NW South Outer Rd.',
'suburb' => '',
'city' => 'Blue Springs',
'postcode' => '64015',
'state' => 'Missouri',
'state_code' => 'MO',
'zone_id' => '36',
'country' =>
array (
'id' => '223',
'title' => 'United States',
'iso_code_2' => 'US',
'iso_code_3' => 'USA',
),
'country_id' => '223',
'format_id' => 7,
),
'content_type' => 'physical',
'customer' =>
array (
'firstname' => 'todd',
'lastname' => 'jordan',
'company' => NULL,
'street_address' => '801 NW South Outer Rd.',
'suburb' => '',
'city' => 'Blue Springs',
'postcode' => '64015',
'state' => 'Missouri',
'state_code' => 'MO',
'zone_id' => '36',
'country' =>
array (
'id' => '223',
'title' => 'United States',
'iso_code_2' => 'US',
'iso_code_3' => 'USA',
),
'format_id' => 7,
'telephone' => '',
'email_address' => '[email protected]',
),
'delivery' =>
array (
'firstname' => 'Todd',
'lastname' => 'Jordan',
'company' => NULL,
'street_address' => '801 NW South Outer Rd.',
'suburb' => '',
'city' => 'Blue Springs',
'postcode' => '64015',
'state' => 'Missouri',
'state_code' => 'MO',
'zone_id' => '36',
'country' =>
array (
'id' => '223',
'title' => 'United States',
'iso_code_2' => 'US',
'iso_code_3' => 'USA',
),
'country_id' => '223',
'format_id' => 7,
),
'doStockDecrement' => NULL,
'extra_header_text' => NULL,
'email_low_stock' => NULL,
'email_order_message' => NULL,
'info' =>
array (
'order_status' => '1',
'currency' => 'USD',
'currency_value' => '1.000000',
'payment_method' => '',
'payment_module_code' => '',
'coupon_code' => '',
'shipping_method' => 'United States Postal Service (1 Boxes) (0 lbs, 12 oz) (USPS Ground Advantage™)',
'shipping_module_code' => 'usps_USPS Ground AdvantageTM',
'shipping_cost' => 8.5,
'subtotal' => 64.0,
'shipping_tax' => 0,
'tax' => 3.5040000000000048885340220294892787933349609375,
'total' => 76.0040000000000048885340220294892787933349609375,
'tax_groups' =>
array (
'MO TAX 5.475%' => 3.5040000000000048885340220294892787933349609375,
),
'comments' => '',
'ip_address' => '73.67.37.4 - 73.67.37.4',
),
'orderId' => NULL,
'products' =>
array (
0 =>
array (
'qty' => 8.0,
'name' => '2024 European Rainbow Emoji Pez Loose SOS',
'model' => '',
'price' => '8.0000',
'tax' => 5.47500000000000763833440942107699811458587646484375,
'tax_groups' =>
array (
'MO TAX 5.475%' => 5.47500000000000763833440942107699811458587646484375,
),
'final_price' => 8.0,
'onetime_charges' => 0,
'weight' => 0.08000000000000000166533453693773481063544750213623046875,
'products_priced_by_attribute' => '0',
'product_is_free' => '0',
'products_discount_type' => '0',
'products_discount_type_from' => '0',
'id' => 8538,
'rowClass' => 'rowEven',
'products_weight' => 0.08000000000000000166533453693773481063544750213623046875,
'products_virtual' => 0,
'product_is_always_free_shipping' => 0,
'products_quantity_order_min' => 1.0,
'products_quantity_order_units' => 1.0,
'products_quantity_order_max' => 0.0,
'products_quantity_mixed' => 1,
'products_mixed_discount_quantity' => 1,
'tax_description' => 'MO TAX 5.475%',
),
),
'products_ordered' => NULL,
'products_ordered_attributes' => NULL,
'products_ordered_html' => NULL,
'queryReturnFlag' => NULL,
'send_low_stock_emails' => NULL,
'statuses' =>
array (
),
'total_cost' => NULL,
'total_tax' => NULL,
'total_weight' => NULL,
'totals' =>
array (
),
'use_external_tax_handler_only' => false,
))zca_messageStack::__set_state(array(
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
'formats' =>
array (
'error' =>
array (
'params' => 'class="messageStackError larger"',
'icon' => '<img src="includes/templates/template_default/images/icons/error.png" title="Error" alt="(image for) Error" width="30" height="27">',
),
'success' =>
array (
'params' => 'class="messageStackSuccess larger"',
'icon' => '<img src="includes/templates/template_default/images/icons/success.png" title="Success" alt="(image for) Success" width="25" height="37">',
),
'warning' =>
array (
'params' => 'class="messageStackWarning larger"',
'icon' => '<img src="includes/templates/template_default/images/icons/warning.png" title="Warning" alt="(image for) Warning" width="30" height="28">',
),
'caution' =>
array (
'params' => 'class="messageStackCaution larger"',
'icon' => '<img src="includes/templates/template_default/images/icons/warning.png" title="Warning" alt="(image for) Warning" width="30" height="28">',
),
'default' =>
array (
'params' => 'class="messageStackError larger"',
),
),
'messages' =>
array (
),
))
2024-03-09 14:45:26 checkout_one: CHECKOUT_ONE_AFTER_PAYMENT_MODULES_SELECTION
payment::__set_state(array(
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
'doesCollectsCardDataOnsite' => false,
'form_action_url' => NULL,
'modules' =>
array (
0 => 'square_webPay.php',
1 => 'paypalwpp.php',
2 => 'moneyorder.php',
),
'paymentClass' =>
moneyorder::__set_state(array(
'_check' => NULL,
'code' => 'moneyorder',
'description' => 'Customers can mail in their payment. Their order confirmation email will ask them to: <br><br>Please make your check or money order payable to:<br>Chris Jordan<br><br>Mail your payment to:<br>Pez Collectors Store<br />

Chris Jordan<br />

21015 NE 171st St<br />

Kearney, MO 64060<br><br>Your order will not ship until we receive payment.',
'email_footer' => 'Please make your check or money order payable to:

Chris Jordan

Mail your payment to:
Pez Collectors Store

Chris Jordan

21015 NE 171st St

Kearney, MO 64060

Your order will not ship until we receive payment.',
'enabled' => true,
'order_status' => NULL,
'title' => 'Cashier's Check / Money Order',
'sort_order' => '3',
)),
'selected_module' => NULL,
)){"id":"usps_USPS Ground AdvantageTM","title":"United States Postal Service (1 Boxes) (0 lbs, 12 oz) (USPS Ground Advantage™)","cost":8.5,"extras":""}
2024-03-09 14:45:26 OnePageCheckout: getAddressValuesFromDb(22581, bill), returning: {"address_book_id":"22581","customers_id":"19319","zone_name":"Missouri","zone_code":"MO","gender":"\u0000","company":null,"firstname":"Todd","lastname":"Jordan","street_address":"801 NW South Outer Rd.","suburb":"","postcode":"64015","city":"Blue Springs","state":"","country":"223","country_id":"223","zone_id":"36","error_state_input":false,"error":false,"country_has_zones":true,"validated":true,"selected_country":"223","state_field_label":"","show_pulldown_states":true}
2024-03-09 14:45:26 OnePageCheckout: getAddressValuesFromDb(22581, ship), returning: {"address_book_id":"22581","customers_id":"19319","zone_name":"Missouri","zone_code":"MO","gender":"\u0000","company":null,"firstname":"Todd","lastname":"Jordan","street_address":"801 NW South Outer Rd.","suburb":"","postcode":"64015","city":"Blue Springs","state":"","country":"223","country_id":"223","zone_id":"36","error_state_input":false,"error":false,"country_has_zones":true,"validated":true,"selected_country":"223","state_field_label":"","show_pulldown_states":true}

9 Mar 2024, 10:33 PM
#372
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

gothstone:

Today we noticed intermittent issues of getting: "Your order's details have changed. Please review the current values and re-submit." Reloading the page or changing the shipping method will let the order go through. Only recent changes were upgrading USPS from K11i to K11j (I typed in the password), sitemap from 3.99 to 4, GPSF from 1.0.0 to 1.0.1, and edit orders from 4.7.0beta2 to 4.7.0 released. It happens using cashiers check / money order, so not a payment module issue.

Guessing USPS API issue? Anyone else seeing this?
I'll agree that those values you show in your 2nd posting are pretty out-of-whack. I'm not sure whether the message is based on those values or some underlying OPC issue. What version of OPC is in use?

9 Mar 2024, 10:47 PM
#373
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

ZCA Bootstrap 3.6.0

10 Mar 2024, 1:08 AM
#374
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Sorry, OPC 2.4.6

16 Mar 2024, 5:01 PM
#375
webskipper avatar

webskipper

Totally Zenned

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

Re: USPS Shipping Module [Support Thread]

lat9:

USPS Web Tools API shipping-module version 2024_02_14_K11j is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292

How should the USPS plugin be added to ZC 2.0+ since there is not an /extras/includes/ directory; for anything else? Just do it ✔️?

Will USPS be included in the ZC 2.0 public release?

17 Mar 2024, 12:44 AM
#376
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,962
Plugin Contributions:
8

Re: USPS Shipping Module [Support Thread]

Webskipper:

How should the USPS plugin be added to ZC 2.0+ since there is not an /extras/includes/ directory; for anything else? Just do it ✔️?

Will USPS be included in the ZC 2.0 public release?

this is an EXCELLENT question.

i would look here:

https://github.com/lat9/usps/blob/K11j/README.md

it suggests making your changes and then copying said file to:

/includes/classes/observers/auto.usps_overrides.php

best.

17 Mar 2024, 10:11 AM
#377
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,703
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

Will USPS be included in the ZC 2.0 public release?

https://docs.zen-cart.com/user/plugins/why_plugins/

12 Apr 2024, 10:57 AM
#378
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,703
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

A password with an embedded ampersand causes the latest USPS to choke - the error response is

80040B19 - XML Syntax Error: Please check the XML request to see if it can be parsed.(B)

Perhaps

htmlspecialchars($password,ENT_XML1)

is the way to pass the password in.

12 Apr 2024, 1:43 PM
#379
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

swguy:

A password with an embedded ampersand causes the latest USPS to choke - the error response is

80040B19 - XML Syntax Error: Please check the XML request to see if it can be parsed.(B)

Perhaps

htmlspecialchars($password,ENT_XML1)

is the way to pass the password in.
GitHub issue created: https://github.com/lat9/usps/issues/44

9 May 2024, 7:29 PM
#380
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

This just in from USPS. I'm still trying to determine whether this will affect rate-only gathering of information that is used by the shipping module.

On Wednesday*** May 15, 2024***, the United States Postal Service will perform maintenance that is critical to its infrastructure.

USPS API Platform Scheduled Deployment Event
Deployment Window
Schedule Date Time
Start Wednesday, May 15, 2024 8:00PM CT
End Wednesday, May 15, 2024 11:00PM CT
Impacted System Outage
USPS API Platform & CNSv2 Yes

IMPACT: Existing client application access and payment authorization tokens will no longer be valid and will result in an error response if utilized. It is necessary for all customers to regenerate their tokens immediately following the change.

ACTION: Client applications must obtain new access and payment authorization tokens.

Note: Detail Release Notes to be provided prior to the release.

We apologize for any inconvenience. Direct any inquiries or concerns to API Support via eMail at [email protected]