Hook still there ?

Ask the community for help and support.
Post Reply
Denzel
VIP Member
VIP Member
Posts: 98
Joined: Sat Oct 31, 2020 7:22 pm
Has thanked: 9 times
Been thanked: 15 times

Hook still there ?

Post 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 ?
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: Hook still there ?

Post by Kofod95 »

listen_updateProductAction()
and
listen_insertProductAction

Maybe?

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Denzel
VIP Member
VIP Member
Posts: 98
Joined: Sat Oct 31, 2020 7:22 pm
Has thanked: 9 times
Been thanked: 15 times

Re: Hook still there ?

Post by Denzel »

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

Maybe?

//Daniel
That's true. Thank you :)
Denzel
VIP Member
VIP Member
Posts: 98
Joined: Sat Oct 31, 2020 7:22 pm
Has thanked: 9 times
Been thanked: 15 times

Re: Hook still there ?

Post 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...
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: Hook still there ?

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Denzel
VIP Member
VIP Member
Posts: 98
Joined: Sat Oct 31, 2020 7:22 pm
Has thanked: 9 times
Been thanked: 15 times

Re: Hook still there ?

Post 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 :)
Post Reply