Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter loopforever

    (@loopforever)

    Update:
    I learned that these can be modified, that is, they are templates. Apart from that, a hook etc. Is there ?

    2-) How can I get the customer email in case of any order?
    To instance, for customer

    $wc_emails = WC()->mailer()->get_emails(); // Get all WC_emails objects instances
    $customer_email = $order->get_billing_email(); // The customer email

    So, vendor ?
    Thank you

    Hello @loopforever,

    1. You can try the simple CSS on your theme additional CSS section o hide the option:

    div#edit-slug-box {
        display: none !important;
    }

    2.I did not get your query related to the customer email. Can you please help me with some detailed explanation so that I can understand better and help you with proper guidance? I will look forward to your response

    Regards
    `

    • This reply was modified 2 years, 11 months ago by roshni07.
    • This reply was modified 2 years, 11 months ago by roshni07.
    Thread Starter loopforever

    (@loopforever)

    Thanks for your answer, dear @roshni07.
    1-) Removed with CSS. However, what I want is to remove it directly. So is there a hook for that? What should I do.
    Also I guess you haven’t seen the other: How can I uninstall permalink and external / affiliate product)?

    2-) The problem is that after placing an order with the code below, “Customer” E-mail can be received. However, I would like to receive the “Vendor” e-mail for the same order. How can I do that ?
    Why do I want to buy it?
    In some order situations, the vendor does not receive e-mails. I want to check this order status in function.php and send an e-mail to the vendor. However, I could not get the vendor’s email.
    Thank you.

    Hello @loopforever ,

    1. The permalink is coming from the template & there is no hook available to remove that without template overriding.

    To remove the product type use this code in your theme’s functions.php file:

    add_filter( 'dokan_product_types', 'remove_product_types', 99 );
    
    function remove_product_types( $product_types ){
    
        unset( $product_types['external']);
    
        return $product_types;
    }

    2. The WooCommerce order object does not hold the vendor emails directly. It holds the vendor user ID & the product’s meta has the vendor information attached to it. You can either retrieve the vendor information from the product on that order.

    You can learn more on retrieving order information here: https://www.businessbloomer.com/woocommerce-easily-get-order-info-total-items-etc-from-order-object/

    I will recommend taking help from a Woo expert to make it work as per your need.

    Thank you 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can i remove Permalink and Externap/Affiliate Product’ is closed to new replies.