Page 1 of 1

Hook still there ?

Posted: Wed Aug 24, 2022 8:47 am
by Denzel
Are the manufacturers action-hooks still called ? I've made an additional manufacturer field, which is not more updated. Listener looks like this:

Code: Select all

class hook_admin_manufacturers_manufacturersNotes {

  public function listen_insertSaveAction() {
    // do stuff
  }
    
}


But looks, as it isn't called :( Any clues ?

Re: Hook still there ?

Posted: Wed Aug 24, 2022 9:31 am
by Kofod95
listen_updateProductAction()
and
listen_insertProductAction

Maybe?

//Daniel

Re: Hook still there ?

Posted: Wed Aug 24, 2022 10:04 am
by Denzel
Kofod95 wrote: Wed Aug 24, 2022 9:31 am listen_updateProductAction()
and
listen_insertProductAction

Maybe?

//Daniel
That's true. Thank you :)

Re: Hook still there ?

Posted: Thu Aug 25, 2022 3:53 pm
by Denzel
Sorry, it's me again... Where are those new Hook-calls hidden?
Again I can't find the productSaveAction() call... At some point it was in categories.php,
but I can't find any calls in catalog.php...

Re: Hook still there ?

Posted: Thu Aug 25, 2022 4:44 pm
by Kofod95
This is more basic than you need, but covers the topic somewhat.
viewtopic.php?p=10533#p10533

The changes happened in 1.0.8.5 (if I remember correctly)

//Daniel

Re: Hook still there ?

Posted: Thu Aug 25, 2022 5:23 pm
by Denzel
Ok, I think, I got it... every action (from admin/includes/actions) has an automaticly called hook, and some are still inside this actions (found insertCategoryUpdateCategoryAction still working)... TY again :)