The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

capturing submit checkout event

Hi Guys !

i'm new to foxy io & trying to capture the checkout submit event so i can save informations on my database but it's not working here my code :

https://pastebin.com/WdnMbs4s

Thanks
Comments
  • fc_adamfc_adam FoxyCart Team
    @chihebnabil,

    Thanks for posting to ask!

    To confirm, are you wanting to capture information when the customer submits a finished transaction on the checkout? If so - we'd recommend utilising our webhooks for that, instead of our javascript events. That way, you can receive the information directly to your server, and it will be for completed transactions. You can see details on our webhooks on our wiki here: https://wiki.foxycart.com/v/2.0/webhooks

    To answer your original question though - it looks like you may be trying to hook into the checkout submit and customer login events on your own website - would that be correct to say? If so - those events don't happen on your website, but rather on our checkout. To interact with events that happen on the checkout, you would need to hook into the events using javascript on the checkout. You can apply custom javascript there by using the "Add custom header and footer code to your templates" option on the "configuration" page of your store's Foxy administration.

    I hope that helps!
Sign In or Register to comment.