Make sure to backup the database prior to executing any of the following commands.
Follow steps 1, 2.a/2.b/2.c and 3 to remove the Cart2Quote Quotation module.
1 Start
First set your store in maintenance mode and developer mode.
php bin/magento maintenance:enable (if on a live server)
php bin/magento deploy:mode:set developer
php bin/magento cache:clean
2.a Remove Composer package
(You can skip to 2.b if you didn't install Cart2Quote using composer)
If you have installed Cart2Quote with Composer, be sure to remove the module from the require, as well as removing the files from the vendor folder:
php bin/magento module:uninstall -r Cart2Quote_Quotation
composer remove cart2quote/module-quotation-encoded
(Optional) If you also installed AutoProposal:
php bin/magento module:uninstall -r Cart2Quote_AutoProposal
composer remove cart2quote/module-autoproposal
Remove the vendor Cart2Quote folder to clear everything up and run
rm -r vendor/cart2quote
2.b Remove (S)FTP installation
(You can skip to 2.c if you didn't install Cart2Quote using (S)FTP)
2.b.1 Remove files
php bin/magento module:disable Cart2Quote_Quotation
rm -r app/Code/Cart2Quote/Quotation
(Optional) If you also installed AutoProposal:
php bin/magento module:disable Cart2Quote_AutoProposal
rm -r app/Code/Cart2Quote/AutoProposal
2.b.2 Clean Database
Tables
DROP TABLE IF EXISTS quotation_quote;
DROP TABLE IF EXISTS quotation_quote_sections;
DROP TABLE IF EXISTS quotation_quote_section_items;
DROP TABLE IF EXISTS quotation_quote_status;
DROP TABLE IF EXISTS quotation_quote_status_history;
DROP TABLE IF EXISTS quotation_quote_status_label;
DROP TABLE IF EXISTS quotation_quote_status_state;
DROP TABLE IF EXISTS quotation_quote_tier_item;
Config
DELETE FROM core_config_data WHERE path LIKE "cart2quote_quotation%";
EAV attribute
DELETE FROM eav_attribute WHERE attribute_code = 'cart2quote_quotable' AND entity_type_id = (SELECT entity_type_id FROM `eav_entity_type` WHERE `entity_type_code` = 'catalog_product');
Sequence tables
If you have multiple store views then you need to remove those store views as well, sequence_quote_1, sequence_quote_2, etc.
DROP TABLE IF EXISTS sequence_quote_0;
DROP TABLE IF EXISTS sequence_quote_1;
|
DROP TABLE IF EXISTS sequence_quote_#STORE_ID#;
Module installation version
DELETE FROM setup_module WHERE setup_module.module = "Cart2Quote_Quotation";
(Optional) If you also installed AutoProposal:
DELETE FROM setup_module WHERE setup_module.module = "Cart2Quote_AutoProposal";
2.c Remove Marketplace installation
(You can skip 3 if you didn't install Cart2Quote using the Magento Marketplace)
Go in the backend to:
System > Web Setup Wizard > Extension Manager
Select under `Actions`: `Uninstall` for any of the following Extensions if they are listed:
cart2quote/module-quoation
cart2quote/module-quoation-encoded
cart2quote/module-autoproposal
3 End
Put the store back in production mode
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento deploy:mode:set production
php bin/magento maintenance:disable