How to validate an empty field on the cart page before customer hit Paypal Express checkout method?

Highlighted
New Member
1 0 0

Hello,

 

My aunt's flower shop requires her customers to provide a delivery date for their order.

 

I've added the javascript date picker to the cart page (https://yeomansflowers.co.uk/cart), and the alert message will pop up when the customer hits the normal checkout button if the delivery date field is empty. 

 

However, there's no way for me to detect if the delivery date field is empty when the customer checkouts using the Paypal Express/Google Pay/Apple Pay checkout button. Those checkout methods will just go through directly without validating the delivery date field.

 

Does anyone know how to solve this problem?

 

Thank you in advance.

 

Sincerely,

 

Leo

 

 

0 Likes