• Resolved yewbeng0104

    (@yewbeng0104)


    Hi,
    I have a question about Woo Hook code…

    When customer choose COD payment method, will hide billing address; when choose other payment method, will show the billing address. I have success use JQuery code to solve this.

    However, I wish can further improve this code:
    “When choose COD payment method, will set billing address not required; when choose other payment method, will set billing address required. ”

    I try to use the add_filter inside JQuery, but fail. It cannot produce the desire result. Please refer to the screenshot:
    https://drive.google.com/file/d/1taTgDgRY3j3ERJ2LMb10iw3PSlHAEFcO/view?usp=sharing

    What should I write in JQuery, in order to make field required/not required?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set billing address “not required” in JQuery’ is closed to new replies.