Mandatory field validation for checkout page seems not working. it is only working for Postcode/ZIP. It is allowing to place order without putting name/address/phone number and other * - mandatory fields. Could you please provide fix for the same? Let us know if your require any other details to understand the issue.
Please check the attached screenshot. The firstname field is not entered, but it is not giving any errors. Other fields are also behaving the same except Postcode/ZIP.
Thank you for the response. After adding the code you gave few more fields are working as expected, but street address field is still not mandatory even though it has to be required. Please find my child theme function.php file attached to the post.
Thank you, for the suggestion. We tried it, however as soon as we save the functions.php file in our child theme, we get 500 error on our site homepage.
Please check the php file attached with this post and also the screenshot of the error.
Hello Team,
Mandatory field validation for checkout page seems not working. it is only working for Postcode/ZIP. It is allowing to place order without putting name/address/phone number and other * - mandatory fields. Could you please provide fix for the same? Let us know if your require any other details to understand the issue.
Please check the attached screenshot. The firstname field is not entered, but it is not giving any errors. Other fields are also behaving the same except Postcode/ZIP.
Thank you.
Hi,
Sorry for late reply.
I'm checking it for you.
Thanks!
Alex Vũ
Any Luck Alex?
Hi,
You can install and active child theme. Then, you can copy code file function.php in child theme and save
Thanks!Alex Vũ
Hello Alex,
Thank you for the response. After adding the code you gave few more fields are working as expected, but street address field is still not mandatory even though it has to be required. Please find my child theme function.php file attached to the post.
Awaiting your reply.
Regards.
Hello,
Can you provide an admin account info so I can check for your problem?
Thanks!
Alex Vu
Ok. I will send you details tonight.
Hi,
I have checked and checkout page has required field.
Thanks!
Alex Vũ
Hi Alex,
Agreed, but we need billing/shipping address also as mandatory. They showed * but it is not getting validated
Hi,
You can add code file function.php in child theme
Thanks!Alex Vũ
Hello Alex,
Thank you, for the suggestion. We tried it, however as soon as we save the functions.php file in our child theme, we get 500 error on our site homepage.
Please check the php file attached with this post and also the screenshot of the error.
Regards.
Hi,
Sorry for late reply.
I solved that problem you can check back.
Thanks!
Alex Vũ
Hi Alex,
sorry for coming back late.
It seems to be fixed. Also let me know how did you fix that:-) THANKS..
Hi,
I have to reload the functions.php file. You can check the code in file.
Can you take some time to rate our item 5stars in ThemeForest?
https://themeforest.net/item/aki-multipurpose-wordpress-theme/reviews/20738235
Thanks
Alex Vũ