Okay
  Public Ticket #3056368
Hide address field in add customer in agent dashboard
Closed

Comments

  •  1
    Diamantaadria started the conversation

    Hi there, I need help,

    Is there any function to hide these address and phone number field? 

    I don't need this fields for registering new customer.

    Rgds,

    DiasrehnZ.jpg

  •  1,906
    WebWizards replied

    Hi Dia,

    You can achieve this by adding the following PHP code snippet to your website:

    add_action('salesking_dashboard_head', function(){
        ?>
        <style type="text/css">
        #salesking_add_customer_form .form-group:nth-child(5), #salesking_add_customer_form .form-group:nth-child(6), #salesking_add_customer_form .form-group:nth-child(7), #salesking_add_customer_form .form-group:nth-child(8) {
            display: none;
        }
        </style>
        <?php
    });
    

    A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/


    Kind regards,

    Stefan