P
P
po4emu4ka20202020-09-22 13:19:14
Joomla
po4emu4ka2020, 2020-09-22 13:19:14

Where in Jshopping (Joomla) to catch the checkout event and hang a handler on it?

Hello!

Can you please tell me where in Jshopping (CMS Joomla) I can catch the order placement event and hang a handler on it so that nothing is lost during the update and so that I can get the full name, phone number, email and comment of the order?

The fact is that when sending an order, I need to duplicate this data in another place. I got into the component ( /components/com_jshopping/controllers/checkout.php ) and right there in step5save() I did it all. But I understand that this is a bad approach. We need a proper implementation.

Help with advice, please.
I will be very grateful)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Rekun, 2020-09-22
@po4emu4ka2020

Find the event call in the code and write a plugin for it . There seems to be a lot of events in Joomshopping, most likely there should be in /controllers/checkout.php as well. Look for something like $dispatcher->triggerEvent or $dispatcher->trigger.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question