teosu
October 8, 2018, 12:00am
1
hi i am using following hook for my project, when i print the data i can see my sent value there
[type] => 1
fn_print_die($feature_data);
fn_set_hook('update_product_feature_post', $feature_data, $feature_id, $deleted_variants, $lang_code);
but when can i use this hook on my function i cant see this data, like this
function fn_my_changes_update_product_feature_post($feature_data, $feature_id, $deleted_variants, $lang_code)
{
fn_print_die($feature_data);
}
turn me empty value
[type] =>
what can be problem ?
teosu
October 8, 2018, 12:00am
2
it was work on 4.7 when i update 4.8 stopped working..
SDAD
October 9, 2018, 12:00am
3
it was work on 4.7 when i update 4.8 stopped working..
Hello!
Please check if some other add-ons affect fn_update_product_feature function.
teosu
October 9, 2018, 12:00am
4
i did before, only my addon use this hooks
Try to test hook with another parameter or variable
If you're feature_data has value in the parent, the the child must be getting that same value unless another addon uses the same hook and has modified the data.
Suggest from a shell prompt you:
grep -R app/addons update_product_feature_post
And ensure that only your addon is using that hook.
teosu
October 10, 2018, 12:00am
7
i will check. thank for advices