Hooks Requests

Dear friends,



I guess you all have some hooks that if they where in the needed place you never be forced to modify cs-cart core.



I start this topic in regards to focus add hooks requests in one place, a loud voice that i consider cs-cart will hear ;)



Please fill free to add your any type of hook requests, php, javascript or tpl





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

#file app/functions/fn.users.php

#function fn_get_user_short_info

#request
should be nice if i can add more fields, in my case i need company


#before
return db_get_row("SELECT user_id, user_login, company_id, firstname, lastname, email, user_type FROM ?:users WHERE user_id = ?i", $user_id);


#after
return db_get_row("SELECT user_id, user_login, company_id, firstname, lastname, email, user_type, company FROM ?:users WHERE user_id = ?i", $user_id);




Thank you





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

They won't listen (almost every hookd request I've ever made over the past 5+ years is still pending…), but…



Could really use a conditional variable added to the orders.manage page in backend. I.e.



This variable can be set in the existing orders:order_row hook (using pre method). But need this for coloring the row background based on criteria. Actually should be there for all listing templates. I've had to do this for several different projects and it always requires modifying distributed files.



Would also like a hook in all the payment providers that makes all of the payment processor result data visible, not just what cs-cart determines should be stored in $pp_response. Some people actually use the details of a response such as “auth_amount” and/or other payment processor rankings.

moved here [url=“Your Add-On Needs A New Hook In Cs-Cart. Post It Here. - Third-Party Add-ons - CS-Cart Community Forums”]Your Add-On Needs A New Hook In Cs-Cart. Post It Here. - Third-Party Add-ons - CS-Cart Community Forums