Tje123 Posted May 17, 2020 Share Posted May 17, 2020 I have developed a custom module and install it from back office.lately i got a requirement to change the module name. I tried these steps. Rename my module folder name (my_shipping -> shipping_module ) Rename module file under modules folder (my_shipping.php -> shipping_module) Rename class name and name class Shipping_module extends CarrierModule { protected $config_form = false; public function __construct() { $this->name = 'shipping_module'; $this->tab = 'shipping_logistics'; $this->version = '1.0.0'; $this->author = 'DDD'; $this->need_instance = 0; } } Then i have refresh my back office module selection and i saw it under `installed modules` tab.(but i've started these steps when uninstall it).then i tried to uninstall it .then it show me Quote cannot uninstall module . the module is not installed. How to rename my existing custom module? Link to comment Share on other sites More sharing options...
KoreLewi Posted December 22, 2020 Share Posted December 22, 2020 Hi Tje123, First of all, you need to uninstall your old module(my_shipping). Rename it. And install the new module (shipping_module) If you rename the module when is installed, then it will not work. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now