estimator log fix

This commit is contained in:
O K
2026-01-21 09:49:37 +02:00
parent ddfaa026cc
commit 187ee14549

View File

@@ -199,7 +199,10 @@ class Usps_Api_Bridge extends Module
$isEstimator = (Tools::getValue('module') === 'zh_uspslabels' && Tools::getValue('controller') === 'carrier'); $isEstimator = (Tools::getValue('module') === 'zh_uspslabels' && Tools::getValue('controller') === 'carrier');
if ($isEstimator) { if ($isEstimator) {
// Prioritize POST data from the widget // Prioritize POST data from the widget
$this->externalLog(['Estimator' => ['response' => $response]]); $this->externalLog(['Estimator' => [
'postcode' => Tools::getValue('postcode'),
'id_country' => Tools::getValue('id_country'),
]]);
if (Tools::getIsset('postcode')) { if (Tools::getIsset('postcode')) {
$destZip = Tools::getValue('postcode'); $destZip = Tools::getValue('postcode');