• Resolved juventis

    (@juventis)


    Hi,
    I had following questions:
    a) How can I hide Phone Number, Email address and Billing /Shipping Address from Vendors dashboard, But it should be available to the Super Admin?
    b) I wanted to restrict a vendor to certain geo-tagged location. How can I enable that?
    c) I want to restrict the vendor from changing the pricing of the products? How can that be done?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Shafinoid

    (@shafinahmad01)

    Hello @juventis

    Thank you for reaching.

    I am trying to provide precise answers down below,

    a) You will perform customizations to hide those values from the vendor.
    Vendors can find those on the email template and on the order details page from the vendor dashboard.

    You can add the below code on the Admin Dashboard > Appearance > Customize > Additional CSS to hide the customer information from the order details page,

    .dokan-left.dokan-order-billing-address {
        display: none !important;
    }
    
    .dokan-left.dokan-order-shipping-address {
        display: none !important;
    }
    
    .dokan-panel-body ul.list-unstyled.customer-details {
        display: none !important;
    }

    And you can use the below custom code to remove the billing and shipping from the email template. However, that will also remove them from other email templates where the hook is being used. Though you can always check the order details from the Admin Dashboard > WooCommerce > Orders.

    Add the following code to your Child Theme’s function.php file,

    //remove customer shipping and billing address from the new order email template
    function removing_customer_details_in_emails( $order, $sent_to_admin, $plain_text, $email ){
        $mailer = WC()->mailer();
        remove_action( 'woocommerce_email_customer_details', array( $mailer, 'customer_details' ), 10 );
        remove_action( 'woocommerce_email_customer_details', array( $mailer, 'email_addresses' ), 20 );
    }
    
    add_action( 'woocommerce_email_customer_details', 'removing_customer_details_in_emails', 5, 4 );

    b) By default such a feature to restrict a specific vendor to sell in a limited area is unavailable. You will need to perform proper customizations to achieve it.

    c) You cannot restrict the vendor to changing the product price. It will also require customizations.

    I would like to help you with further customizations, however, I am unable to provide any further custom solutions as per our support policy. I believe you can understand that.

    Best Regards!

    Shafinoid

    (@shafinahmad01)

    Hello,
    I believe you are doing well,

    As you haven’t replied for a long, I’m considering that your query is being satisfied and I’m also resolving this topic.

    But feel free to create another one anytime.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hiding Customer Information’ is closed to new replies.