Jump to content

How to rename custom module


Tje123

Recommended Posts

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.

  1. Rename my module folder name (my_shipping -> shipping_module )
  2. Rename module file under modules folder (my_shipping.php -> shipping_module)
  3. 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

  • 7 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...