Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Php Hook Dont Pas Data To My Function Correctly Rate Topic   - - - - -

 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 370 posts

Posted 08 October 2018 - 02:03 PM #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
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 370 posts

Posted 08 October 2018 - 02:08 PM #2

it was work on 4.7 when i update 4.8 stopped working..



 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3189 posts

Posted 09 October 2018 - 05:40 AM #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.


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Mega SEO Package - All you need for your SEO


 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 370 posts

Posted 09 October 2018 - 06:37 AM #4

i did before, only my addon use this hooks



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18650 posts

Posted 09 October 2018 - 01:49 PM #5

Try to test hook with another parameter or variable


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11110 posts

Posted 09 October 2018 - 11:30 PM #6

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.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 370 posts

Posted 10 October 2018 - 06:50 AM #7

i will check. thank for advices