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()) . "')");
}