Jump to content

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

Hooks Requests Rate Topic   - - - - -

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1263 posts

Posted 17 June 2014 - 11:35 AM #1

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
part of hungryweb.net

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1263 posts

Posted 17 June 2014 - 11:38 AM #2

#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
part of hungryweb.net

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

Posted 17 June 2014 - 04:51 PM #3

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.
<tr {if $order_row_class}class="{$order_row_class}"{/if}>
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.

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.


 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1263 posts

Posted 09 June 2015 - 05:30 AM #4

moved here http://forum.cs-cart...t-post-it-here/