• Resolved arxroma

    (@arxroma)


    I spent hours reading all the posts and I did not find one like what I need. And I don′t understand how.
    When a purchase is made, the status becomes “on hold”. In that state, the buyer’s payment is expected to move forward.
    BUT, all the buyer’s details are in the Orders section, so the seller can contact the buyer directly and not pay commissions!!!
    I don’t understand how you allow to hide the data in the store section but all come out here.

    So what I need is to disable this: https://ibb.co/kg4spzz
    Or to hide this: https://ibb.co/CnPjL8H

    At least while the state is awaiting payment.
    Please help asap, tnx

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @arxroma ,

    I understand your request.

    If you want to hide the customer details completely from the order details page you can modify the dokan-lite/templates/orders/details.php and strip out the codes which are showing the customer details.

    You can also use CSS to hide them –

    
    .dokan-orders-area .customer-details, 
    .dokan-order-billing-address, 
    .dokan-order-shipping-address {
        display: none;
    }
    

    If you want to make it dynamic for example only hide when the order status is on-hold then you can use this condition before all of those section in details.php template –

    if ($order->get_status() !== 'on-hold') :

    Here is the full details.php file that you can copy & save on your-theme/dokan/orders/ folder with the same name – https://gist.github.com/rashedripon/67c1d2e1187177e40da16a5fc10e0717

    See line no. 126 & 220 where I have added the condition.

    Thank you ??

    Thread Starter arxroma

    (@arxroma)

    You’re amazing Rashed!
    You understood perfectly what I needed and you helped me in the simplest way.
    I am very grateful and I will remember your name.

    Hello @arxroma ,

    I am happy to know that the instructions were helpful & thanks a lot for your kind words. It means a lot.

    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide buyer data in Orders section’ is closed to new replies.