I have added two custom attribute named as country_code and mobile. And added those fields in app\design\frontend\base\default\template\persistent\customer\form\register.phtml

And the fields are reflecting on register page and working good. Please note that I haven't added these fields in app\design\frontend\base\default\template\checkout\onepage\billing.phtml

But when I try to complete my checkout I got an alert box saying that

"Country Code" is a required value., "Mobile Number" is a required value.

So I added those field in billing.phtml just to check the behavior. But this time I also got the same alert box. Refer below screens.

enter image description here

enter image description here

Hope I explained clearly. Suggest what goes wrong here.

  • Did you check the attribute declaration, if it's mentioned as required field or not. Jun 4, 2015 at 6:23
  • @RahulKumarDas I made it required. Refer my second screen, I entered the values. I highlighted in red box. Still it is showing the validation
    – Anto S
    Jun 4, 2015 at 6:31
  • Do you get any console errors?
    – Mackelito
    Mar 16, 2016 at 21:24


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.