Skip to main content
Tweeted twitter.com/#!/StackExpression/status/279167869177184256
edited tags
Link
Natetronn
  • 2.7k
  • 20
  • 24
Source Link
Geoff Cowan
  • 410
  • 2
  • 11

Testing Extensions / Calling Hooks

I'm about to embark on writing a new extension for the Ecommerce module "Store" though this should relate to any extension hook. I am planning to "hook" into "store_order_complete_end" in order to add in some member/user data after an order is complete.

My core question, is how can I test this extension, without having to go through actually running through creating a cart, then registering the order, faking payment, etc on the front end which will become a rather tedious task each time I want to test my code.

Is there a simple way in either EE template code, or PHP / Plugin code to "fire" a hook, to then "fire" my code if that makes sense.

Thanks

Geoff