Zen Cart Logo
Forums / Addon Shipping Modules / UPS XML: Support Thread

UPS XML: Support Thread

Views: 110,357

Results 181 to 200 of 246
22 Jul 2021, 1:50 PM
#181
swguy avatar

swguy

Administrator

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

UPS XML: Support Thread

Update: Cindy was right - I had other issues that prevented the values returned from ups.php vs upsxml.php from being identical.
Thanks Cindy!

22 Jul 2021, 1:53 PM
#182
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

swguy:

Update: Cindy was right - I had other issues that prevented the values returned from ups.php vs upsxml.php from being identical.
Thanks Cindy!
No problem, @swguy ... what were those other issues?

22 Jul 2021, 2:59 PM
#183
swguy avatar

swguy

Administrator

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

Re: UPS XML: Support Thread

  • I had some custom logic in UPSXML which was not in UPS.
  • UPSXML has its own origin zip code but UPS uses the one from Admin > Configuration > Shipping, which was incorrectly set.
6 Mar 2022, 3:54 AM
#184
ntestinfo11 avatar

ntestinfo11

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

Re: UPS XML: Support Thread

Is this plugin compitible with PHP8?

6 Mar 2022, 2:53 PM
#185
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

ntestinfo11:

Is this plugin compitible with PHP8?
I haven't specifically tested with PHP8, but there are no deprecation issues present.

17 May 2022, 12:23 PM
#186
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

lat9:

I haven't specifically tested with PHP8, but there are no deprecation issues present.
... but someone else has, and there's a fatal error due to the fact that the *XMLParser *class is now in the PHP base. See https://github.com/lat9/upsxml/issues/27; v1.7.10 forthcoming.

17 May 2022, 1:55 PM
#187
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

I've just submitted v1.7.10 of the UPSXML shipping method for the Zen Cart moderators' review and will post back here when it's available for download.

This release corrects a PHP 8.0+ Fatal error; XMLParse class now included in PHP base; see GitHub issue #27.

18 May 2022, 10:40 AM
#188
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

lat9:

I've just submitted v1.7.10 of the UPSXML shipping method for the Zen Cart moderators' review and will post back here when it's available for download.

This release corrects a PHP 8.0+ Fatal error; XMLParse class now included in PHP base; see GitHub issue #27.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=126

31 Jul 2022, 2:24 PM
#189
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

I've just submitted v1.7.11 of UPSXML for the Zen Cart moderators' review; I'll post back here when it's available for download.

This version contains changes associated with GitHub issue #28, due to Zen Cart 1.5.8's requirement for the second argument to zen_get_zone_code to be an integer.

31 Jul 2022, 6:04 PM
#190
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

lat9:

I've just submitted v1.7.11 of UPSXML for the Zen Cart moderators' review; I'll post back here when it's available for download.

This version contains changes associated with GitHub issue #28, due to Zen Cart 1.5.8's requirement for the second argument to zen_get_zone_code to be an integer.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=126

12 Aug 2022, 2:35 PM
#191
swguy avatar

swguy

Administrator

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

Re: UPS XML: Support Thread

Has anyone figured out the changes required to make UPSXML respect the free shipping setting (product_is_always_free_shipping) in the products table?

12 Aug 2022, 2:53 PM
#192
swguy avatar

swguy

Administrator

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

Re: UPS XML: Support Thread

My solution was just to recompute $shipping_num_boxes.
Just before the loop that calls _addItem,

            // Handle free shipping
            $free_weight = $_SESSION['cart']->free_shipping_weight();
            if ($free_weight > 0) { 
               $non_free_weight = $_SESSION['cart']->show_weight() - $free_weight; 
               $zc_boxes = zen_round(($non_free_weight/SHIPPING_MAX_WEIGHT), 2);
               $shipping_num_boxes = ceil($zc_boxes);
            }

Not sure if this is perfect, still testing.

12 Aug 2022, 5:51 PM
#193
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

swguy:

My solution was just to recompute $shipping_num_boxes.
Just before the loop that calls _addItem,

        // Handle free shipping
        $free_weight = $_SESSION['cart']->free_shipping_weight();
        if ($free_weight > 0) { 
           $non_free_weight = $_SESSION['cart']->show_weight() - $free_weight; 
           $zc_boxes = zen_round(($non_free_weight/SHIPPING_MAX_WEIGHT), 2);
           $shipping_num_boxes = ceil($zc_boxes);
        }
> Not sure if this is perfect, still testing.
The underlying issue is that the shipping module isn't using ***zen_get_shipping_enabled*** to see if the cart's all free shipping.

GitHub tracking issue: <https://github.com/lat9/upsxml/issues/29>
12 Aug 2022, 6:44 PM
#194
swguy avatar

swguy

Administrator

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

Re: UPS XML: Support Thread

My concern is not so much that the cart is all free shipping but rather that some items are and others aren't.
It makes sense for UPS to appear as an options even if a cart is free shipping (for example, UPS might be offered as expedited shipping).
I just think that (at least for some customers) respecting the per product free shipping flag would be preferred.

13 Aug 2022, 12:35 AM
#195
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

swguy:

My concern is not so much that the cart is all free shipping but rather that some items are and others aren't.
It makes sense for UPS to appear as an options even if a cart is free shipping (for example, UPS might be offered as expedited shipping).
I just think that (at least for some customers) respecting the per product free shipping flag would be preferred.
Since that's processing that should affect ***all ***shipping-modules, I'll suggest that the change should be in /includes/classes/shipping.php, where the $shipping_weight is calculated. It's there that the cart's weight should be reduced by the free_shipping_weight.

13 Aug 2022, 12:49 AM
#196
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

lat9:

Since that's processing that should affect ***all ***shipping-modules, I'll suggest that the change should be in /includes/classes/shipping.php, where the $shipping_weight is calculated. It's there that the cart's weight should be reduced by the free_shipping_weight.
... or possibly in the shopping_cart.php class' **show_weight **method? From the in-core usage, it looks like the 'assumption' made by callers of that method is that the weight returned is the weight to be used for the shipping calculations.

13 Aug 2022, 4:01 AM
#197
swguy avatar

swguy

Administrator

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

Re: UPS XML: Support Thread

I'm not sure ... I'm not even sure upsxml should be changed for most people (based on the paucity of complaints).

Shipping by Item sort of works this way now (exclude free shipping items in the count that is the multiplier in the cost calculation).

Table Shipping works this way for price and item calculation, but not for weight calculation.
Zone Shipping is the same way as Table Shipping.
Weird.

10 Oct 2022, 9:03 PM
#198
spython avatar

spython

New Zenner

Join Date:
Jun 2016
Location:
New York, NY
Posts:
85
Plugin Contributions:
0

Re: UPS XML: Support Thread

We have upgraded to Zencart 1.5.7d and the UPSXML module v1.7.11 yet we are still getting charge much higher rates than our physical store module (not the shopping cart) that uses the same UPS Rates Access Key. We had hoped the upgrade would solve this issue - but it persists. Any advice would be greatly appreciated.

11 Oct 2022, 10:51 AM
#199
lat9 avatar

lat9

Administrator

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

Re: UPS XML: Support Thread

SPython:

We have upgraded to Zencart 1.5.7d and the UPSXML module v1.7.11 yet we are still getting charge much higher rates than our physical store module (not the shopping cart) that uses the same UPS Rates Access Key. We had hoped the upgrade would solve this issue - but it persists. Any advice would be greatly appreciated.
Have you set your "UPS Rates: Shipper Number" so that you're receiving your store's negotiated rates?

11 Oct 2022, 2:41 PM
#200
spython avatar

spython

New Zenner

Join Date:
Jun 2016
Location:
New York, NY
Posts:
85
Plugin Contributions:
0

Re: UPS XML: Support Thread

SPython:

We have upgraded to Zencart 1.5.7d and the UPSXML module v1.7.11 yet we are still getting charged much higher rates than our physical store module (not the shopping cart) that uses the same UPS Rates Access Key. We had hoped the upgrade would solve this issue - but it persists. Any advice would be greatly appreciated.

Here is an example: sending a 7lb package from New York to California the UPS charge quoted on our UPS desktop application is $19.18 and the same package has an estimated UPS charge of $28.90 via the UPSXML module for Zencart