improve address detection logic

This commit is contained in:
O K
2026-01-02 09:32:44 +02:00
parent 3e168ea046
commit cdb9341a4f
2 changed files with 58 additions and 35 deletions

View File

@@ -10,7 +10,9 @@ class Zh_UspsLabelsOverride extends Zh_UspsLabels
* Intercept the rate calculation call.
*/
public function getPackageShippingCost($params, $shipping_cost, $products)
{
{
// 1. Check if Bridge Module exists and is active
/** @var Usps_Api_Bridge $bridge */
$bridge = Module::getInstanceByName('usps_api_bridge');