go into phpMyAdmin and remove the row for that key after you Uninstall it. It gets left in and has an error when re-installed.
go into phpMyAdmin and remove the row for that key after you Uninstall it. It gets left in and has an error when re-installed.
Why does that key get left in? Is there a fix to the uninstall code to get it to remove the key properly so that the module can be reinstalled properly? That key never properly displays in the admin settings for the shipping module either, so there's something wrong with the code regarding it.
zc 1.3.8a
I installed the Request for Quote 1.0 Shipping and Payment Module found here:
http://www.zen-cart.com/index.php?ma...roducts_id=480
- In the shipping module settings in the admin, the only zone option is to DISABLE one zone for the module. However, it doesn't work. No matter what zone I select, it enables the module for all zones.
- The payment module has no option to select a zone. There's a blank text field in the settings that from the source code appears to be for selecting a zone, but in that case it should be a dropdown type field.
It's version 1.0 from 2007, so it appears that this module has been abandoned and never entirely worked.
Basically I want to have all international customers and customers outside the non-continental US have only one shipping option, $0 and with an explanation that it's a shipping quote request, and one payment option, with an explanation that it's a request for a quote, with no payment information needed.
I can use the MultiGeoZone MultiTable Shipping Module as the shipping option, but for the payment module I still need something that will email me a request for a quote and not ask for any online payment information from a customer (much like the moneyorder module) . Any suggestions?
Last edited by fakeDecoy; 15 Sep 2010 at 07:43 PM.
i have started a mod like this, but it is far from being finished. i will post here with upates, but please do not expect anything soon
So I tried removing and reinstalling the payment module, and I get this error during reinstall.
1062 Duplicate entry 'MODULE_PAYMENT_RFQ2_PAYTO' for key 2
in:
[insert into zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('For more info contact:', 'MODULE_PAYMENT_RFQ2_PAYTO', '', 'Who is the contact for quotations?', '6', '1', now());]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Anyway, what might I do to fix the code such that it uninstalls correctly? I found the remove function, below, but the code looks too simple to show any problem.
Code:function remove() { global $db; $db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); }
How goes it?
Attached is a revamped 139 version of RFQ based on the freeshipper.php and moneyorder.php files. It currently works for me, but I am still testing. Please note that I have not included the admin/includes/languages/english/orders.php, which needs to be addressed.
Comments/Criticisms appreciated.
Please ignore the zip of my previous post and use this zip.
Apologies for any inconvenience.