Here's the list, but I don't see how any of them could mess with the shipping estimator.
Here's the list, but I don't see how any of them could mess with the shipping estimator.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
*************
no good
Last edited by dbltoe; 8 Mar 2025 at 11:43 PM.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
That's a funky copy, but maybe it will help.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
Send me a screen cap of the configuration screen. I don't need the API Key and Secret. Just need to see how it is all configured.
Okay an update here: a fix for this is available, but it's kind of hacky.
In uspsr.php (if encapsulated, "\zc_plugins\USPSRestful\v1.1.2\catalog\includes\modules\shipping\". Unencapsulated "\includes\modules\shipping\")
Around line 942, find this:
Replace the above with:PHP Code:
$quote['title'] .= " [" . MODULE_SHIPPING_USPSR_TEXT_ESTIMATED_DELIVERY . " " . $est_delivery . "]";
Around line 947, find this:PHP Code:
if (strpos($quote['title'], MODULE_SHIPPING_USPSR_TEXT_ESTIMATED_DELIVERY) === FALSE) $quote['title'] .= " [" . MODULE_SHIPPING_USPSR_TEXT_ESTIMATED_DELIVERY . " " . $est_delivery . "]";
Replace the above with:PHP Code:
$quote['title'] .= " [" . MODULE_SHIPPING_USPSR_TEXT_ESTIMATED . " " . zen_uspsr_estimate_days($standard['serviceStandard']) . "]";
PHP Code:
if (strpos($quote['title'], MODULE_SHIPPING_USPSR_TEXT_ESTIMATED) === FALSE) $quote['title'] .= " [" . MODULE_SHIPPING_USPSR_TEXT_ESTIMATED . " " . zen_uspsr_estimate_days($standard['serviceStandard']) . "]";
---
In essence, the module will check to see if there is already a copy of the string "est. delivery" or "est." as necessary. If there is not, include it. If there is, skip and do not. For some reason, the module will run itself twice and doing so caused it to add the estimate delivery time twice as well. I'll do an investigation into the code to see what could potentially cause this. But for right now, this should do.
This will be included in 1.1.3 to be released next month alongside any other fixes or improvements.
Finally back from my travels so I can check this new module out, but I didn't get too far with it, and could use some help.
I've downloaded ver 1.1.2 Non-Encapsulated from the git repository. Copies the files where it needs to be, but it doesn't seem to work with my setup.
Once clicking on the "install" button in the admin page, it returned to the shipping module page with the module sort order/status as yellow, and no other dialogs.
Clicking on another module, then clicking on USPSr again gives me an Edit button, doesn't it doesn't actually allow me to edit anything, as the column will remain blank.
Top of the menu screen shows these errors:
USPSr Error: No services selected for USPSr module.
USPSr Error: You didn't enter an API Key and Secret. Please follow the instructions and log in to the developers dashboard to obtain your Consumer Secret and Consumer Key
Nothing I can see in the logs in the zen-cart logs directory.
This is my current configuration:
ZC Version 1.55f
PHP 7.1
MariaDB 1.44
original USPS module is installed.
Aside from the DB , Im kinda stuck in this ZC and Php version due to a number of abandonware that is in used in my production shopping cart.
Last edited by chibipaw; 14 Mar 2025 at 01:49 PM.
Bookmarks