Zen Cart Logo
Forums / All Other Contributions/Addons / how to uninstall add-on w/o sql file?

how to uninstall add-on w/o sql file?

Locked

Views: 1,439

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
23 Oct 2010, 6:58 PM
#1
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

how to uninstall add-on w/o sql file?

If the add-on did not come with an uninstall.sql file (Telephone Not Required add-on), how do I rip its listing out of Admin Config Customer Details? I've deleted everything related to the add-on, so the Admin control doesn't function, which is fine, but I don't need it listed there taking up on that list of controls. Thanks much.

23 Oct 2010, 7:40 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: how to uninstall add-on w/o sql file?

Every where you see INSERT INTO configuration you need to DELETE FROM configuration, using the configuration key (the upper case value). For instance:

$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function ,date_added) values ('Re-calculate Tax', 'MODULE_ORDER_TOTAL_BETTER_TOGETHER_CALC_TAX', 'Standard', 'Re-Calculate Tax', '6', '4','zen_cfg_select_option(array('None', 'Standard', 'VAT', 'Credit Note'), ', now())");

is uninstalled using

DELETE FROM configuration WHERE configuration_key = 'MODULE_ORDER_TOTAL_BETTER_TOGETHER_CALC_TAX';

23 Oct 2010, 8:41 PM
#3
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: how to uninstall add-on w/o sql file?

Thank you, Scott. I'm trying to grip it and rip it, but am a little fuzzy. Here is all the code from the install.sql. With your instructions for uninstall, how would it look? Once I know what it should look like, and I can handle executing the sql.
Thanks again.
Jim

-- Insert Telephone info into config. for Admin operation.
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Telephone Number', 'ACCOUNT_TELEPHONE_NUMBER', 'true', 'Display telephone number field during account creation and with account information', '5', '8', 'zen_cfg_select_option(array('true', 'false'), ', now());

23 Oct 2010, 8:44 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: how to uninstall add-on w/o sql file?

DELETE FROM configuration WHERE configuration_key = 'ACCOUNT_TELEPHONE_NUMBER';

23 Oct 2010, 8:53 PM
#5
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: how to uninstall add-on w/o sql file?

thanks, simpler than I was making it. fun to learn!