• Resolved vinayakt3

    (@vinayakt3)


    I need to make shipping field primary and billing fields secondary on checkout page through custom plugin. I already added email in shipping form and made all the fields required and billing fields optional. But how to manage functionality ? IE: default user email to shipping email while creating an account on checkout page and emails etc.

Viewing 4 replies - 1 through 4 (of 4 total)
  • If it’s a custom plugin then you should post to the plugin support page instead.
    What you’re trying to do doesn’t sound like a woocommerce function.

    Billing fields are primary because you wouldn’t charge someones shipping address or the card would decline.

    Thread Starter vinayakt3

    (@vinayakt3)

    @cmba Thanks for your reply.
    Custom plugin means mine own plugin in which I am trying to customize checkout page.
    Everything I did is working but there is a problem while creating account while checkout. user email is default to billing email and while submitting it’s throwing error that “please enter a valid email address”, because in class-wc-checkout.php on line number 1010 its defined to billing_email. I am trying to change it with extending the class in my plugin but it is not working.

    If someone from woocommerce were to help you. They might want a link to the page as well as the code from your plugin.

    Thread Starter vinayakt3

    (@vinayakt3)

    Thanks. I read that billing email is required anyhow. I changed my email address to shipping_email and now everything is worknig ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to make shipping fields primary?’ is closed to new replies.