Jump to content

[SOLVED] Remove edit action on a backoffice Module in Prestashop 1.5


julkido

Recommended Posts

Hello, i'm sorry if my english is bad, i'm french.

 

I'm developing a module which use the List feature of Prestashop and i would like to remove the edit action.

 

By default, each row of the list is a link who redirect you to the edit form but i don't have an edit form and i don't want to have one.

 

Is it possible to remove this functionality ?

 

It make issues because i have customs links in each row, the links are working because i used target="_blank" but it redirect you to the edit form.

 

I didn't find the answer on the official doc : http://doc.prestasho...PS15/HelperList .

 

Regards

Edited by julkido (see edit history)
Link to comment
Share on other sites

I am trying to remove manually each onclick event in Jquery but it don't word :(

 

public function setMedia()
{
	parent::setMedia();
 $this->context->controller->addJS(MODULE_DIR.$this->module->name.'/ordonnances.js');
	//$this->addJS(_PS_MODULE_DIR_ .'ordonnances/ordonnances.js');
}

 

The Jquery file is not include whatever the way i use.

 

Ok the Jquery file is now include using "_MODULE_DIR_" instead of "MODULE_DIR" but it still don't work because it seems like the Jquery code is executed before the table loading.

Edited by julkido (see edit history)
Link to comment
Share on other sites

  • 6 years 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...