I am developing a plugin for a charity that will assign a specific ticket number(s) to each item purchased for what can best be described as a raffle event they hold annually. I chose eShop because of its hooks for post-payment processing but am having difficulty in determining where to apply the "onAfterCompleteOrder" trigger function code. I do backend design using PHP, but am not a Joomla expert.
How do I categorize this kind of plugin so that I know what directory to target for the installation? Would it be an extension to eShop itself, or can I see these triggers within Joomla itself(ie. creating a Joomla plugin versus an eShop plugin)? Currently the eShop plugin works fine with the PayPal integration, and returns to eShop after payment has been made correctly. But I am unsure how to intercept the process at this point and run a script that would assign a ticket number(s) from a database and then email the customer with the numbers and other sales related data. Can someone please point me in the right direction or perhaps to some sort of similar code being used with eShop?
Thanks in advance for your assistance!
Best regards,
Dan