Jump to content

How to properly upgrade module when changing some css and controller content


Recommended Posts

So I want to change some colours, and replaced this line two lines:

...
'image' => _PS_BASE_URL_ . "/modules/modulename/views/img/image.png",
...
$this->addJS(_PS_BASE_URL_ . "/modules/modulename/views/js/file.js");
...

With these two:

...
'image' => _MODULE_DIR_.$this->module->name."/views/img/image.png",
...
$this->context->controller->addJS(_MODULE_DIR_.$this->module->name.'/views/js/file.js');
...

The question is what do i need to do to properly make this upgrade available on addon store?

Share this post


Link to post
Share on other sites

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More