We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Executing two functions with a single Action_ID

Development and Programming

Carl W Crawley's avatar
Carl W Crawley
136 posts
15 years ago
Carl W Crawley's avatar Carl W Crawley

Hey All,

So here’s the situation:

I have a site (v2.1.3) which uses the simple commerce module to make some basic purchases.

What I’m need to accomplish, is an update of the members table when the IPN notification is sent back to update a custom field.

I’ve found the incoming_ipn() function in the mod.simple_commerce.php which is where all the IPN magic takes place - so what I’m trying to figure out is if there is a way that I can get the system to execute another function from the same action_id preferably without hacking any of the core files.

Alternatively, I’ll just add my own function into the simple_commerce.php module which does the necessary updating, but I’d like to keep the system as clean as I possibly can.

Any pointers/suggestions would be much appreciated.

Regards,

Carl.

       
Low's avatar
Low
407 posts
15 years ago
Low's avatar Low

How about creating a new action, use that for the PayPal callback (calling incoming_ipn()) and your custom stuff?

       
Bjørn Børresen's avatar
Bjørn Børresen
629 posts
15 years ago
Bjørn Børresen's avatar Bjørn Børresen

Create an extension that hooks onto this one: http://ellislab.com/expressionengine/user-guide/development/extension_hooks/module/simple_commerce/index.html#simple_commerce_evaluate_ipn_response

       
Ingmar's avatar
Ingmar
29,245 posts
15 years ago
Ingmar's avatar Ingmar

Thanks for chiming in, guys. Does that makes sense, Carl? Also, moving to the Dev forum. Thanks.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.