International RFQ/ Shipping rate request needed for v157c
I need to have international customers request their shipping options before checkout until I can find a better solution.
There were some plugins that offered this for earlier versions of ZC. However, they are all very old, most for v1.3.x series Zen Carts. I ran into this same problem 13 years ago (https://www.zen-cart.com/showthread....t=RFQ+SHIP-ZEN). I don't expect any of the old plugins to work now, and I need to do this on a v157c.
Is there a workaround for this in the admin? Or perhaps a repurposing of one of the existing shipping options that can be applied to this problem? Thank you.
Re: International RFQ/ Shipping rate request needed for v157c
Was there anything about the plugin set that you mentioned, which wasn't filling the need?
(ie: if just upgrading it for v157 would suffice, that'd be helpful to know)
Re: International RFQ/ Shipping rate request needed for v157c
Quote:
Originally Posted by
DrByte
Was there anything about the plugin set that you mentioned, which wasn't filling the need?
(ie: if just upgrading it for v157 would suffice, that'd be helpful to know)
I didn't attempt the install because it appears to overwrite orders.php files, and the files have evolved since the plugin was released for v1.3.8. I also didn't understand them well enough to make the necessary changes. So I thought I should inquire about alternative plugins or admin workarounds that would accomplish the same.
I believe an upgrade would work. It performed well in previous Zen Carts.
Re: International RFQ/ Shipping rate request needed for v157c
The change to orders.php was actually minimal. And it seems the plugin file set had an error in it too.
Code:
define('TEXT_RQF', 'Request for Quote');
should be
Code:
define('TEXT_RFQ', 'Request for Quote');
There were also a couple of deprecated constructor warnings in rfq.php and rfq2.php which are fixed by replacing and with
Code:
function __construct
I also had a bit of trouble getting the image to show up (not sure why), but placing the .gif in my images directory and changing DIR_WS_ICONS in includes/modules/rfq.php to DIR_WS_IMAGES seems to have fixed that.
Looks like it's working great with v1.5.7c
Re: International RFQ/ Shipping rate request needed for v157c
Yes, the renaming of the constructor function is required for modern PHP versions.
The admin orders.php language file define could just be moved to its own extra_definitions file, so that no override is required.
There's a possibility that some PHP warnings may occur if the module files are uploaded but the modules haven't been activated/enabled yet. But once enabled such warnings should disappear. That's just a matter of testing for certain defines that aren't present during the constructor loading, and exiting early if the module isn't enabled.