Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Не спрацьовує event з трігером на видалення товару "admin/model/catalog/product/deleteProduct/before"


 Share

Recommended Posts

Створив event з реакцією на видалення товару (трігер "admin/model/catalog/product/deleteProduct/before").
Але нічого не відбувається, мій метод не викликається при настанні події. 

До речі, з трігером "admin/model/catalog/product/deleteProduct/after" все працює. При before десь затикається.

 

Тестував на "чистій" оригінальній збірці OpenCart 3.0.3.8 без інших розширень. Вимикав інші event'и - ніяких змін.
Якщо хтось стикався - буду радий за підказку. Якщо знайду рішення сам - напишу для інших.

  • +1 1
Link to comment
Share on other sites


В 11.04.2023 в 21:13, chukcha сказав:

Для отладки смотрите в ... параметры вызова метода (например -количество)

Ви праві. Третій параметр зайвий. Так як у мене універсальний метод і для before і для after, то було три вхідних параметри. Додав третьому дефолтне значення і все запрацювало. 

Проблема вирішена.
Дякую за підказку!

Link to comment
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
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.