Public Ticket #3056368

Hide address field in add customer in agent dashboard

Closed
Comments
3 Tickets 1
Diamantaadria started the conversation 4 years ago on June 2, 2022 at 8:45am

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

2,762
KingsPlugins replied 4 years ago on June 2, 2022 at 6:19pm

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://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

Kind regards,

Stefan

Sign In