Can we add custom code to the Checkout button on the Cart page?

Discussion:
I want to add custom code to the Checkout button.

What are you trying to achieve:
I want to be able to send my customer’s order to the shopowner on Whatsapp when the customer clicks the ‘Checkout’ button. Presently the ‘Checkout’ button is not enabled to add custom code to it.

Additional information:
Nil.

Hi Avantika!

You can add the code inside of the onNewOrder() event handler to trigger the event when the order is placed.

Thank you Pratham ! That helped !

1 Like