• Resolved uigauravsh

    (@uigauravsh)


    Hi there, and thank you for such an amazing plugin. Works great for my website.

    Just that I need a different WhatsApp number for every product and therefore, need the “Assign a Number” checkbox in the “Add New Product” page to be checked by default. Your help will be truly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author walterpinem

    (@walterpinem)

    Hi @uigauravsh

    Thanks for using the plugin.

    Please try the following code by adding it into your child theme’s functions.php or a code snippet plugin:

    function wa_order_wa_order_phone_number_checked() {
    $current = get_current_screen();
    if ( 'product' === $current->post_type ) {
        echo "<script>document.getElementById('_wa_order_phone_number_check').checked = true;</script>";
        }
    }
    add_action('admin_footer', 'wa_order_wa_order_phone_number_checked');

    Let me know the result.

    Thank you.

    Thread Starter uigauravsh

    (@uigauravsh)

    Hey, thanks a ton bro! The code worked just as I wanted. This is perfect. Giving you a 5 star review for being awesome ??

    Plugin Author walterpinem

    (@walterpinem)

    Hi @uigauravsh

    Thanks for confirming the result.
    And also thanks so much for giving a nice review, it means a lot to me.

    I’m marking this topic as resolved.
    If you face an issue or if you have another question, please do not hesitate to open a new topic.

    Thank you so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Assign a Number” to be checked’ is closed to new replies.