WCMp bundle is available at a slashed price

Grab It Now

Setup direct invoice mailing to end customer after order was placed

Setup direct invoice mailing to end customer after order was placed2018-10-06T01:52:14+00:00

Home Support Forum WCMp PDF Invoice Setup direct invoice mailing to end customer after order was placed

WCMp PDF Invoice

Setup direct invoice mailing to end customer after order was placed Resolved

  • Author
    Posts
  • pat-l
    Participant
    Post count: 26

    Hi,

    I have the following logic for my marketplace:

    a) Every customer (seller & buyer) is a vendor (so owns a business and needs an pdf invoice for every transaction)
    b) there is no commission for vendors at all
    c) vendors can buy products via direct payment, paypal, or wechat

    Now I would like to do some things to make the process more comfortable for my vendors:
    1. There is no need for the vendor to be invoiced by myself, because there is no commission at all. So where is the template I can hide the buttons/functions for download invoice (in vendor dashboard > order > “Download PDF Invoice”)?

    2. After checkout (order placement) pdf invoices should be send out automatically to the end customer for every different vendor where sth was bought (like the order confirmation mail). Could you please help me a bit with which hooks I should use etc.?

    Thank you!
    Regards,
    Patrick

  • WCMp Admin
    Keymaster
    Post count: 8424

    @patrick-losert, thanks for reaching WCMp Support!!

    our replies are inline :

    1. There is no need for the vendor to be invoiced by myself, because there is no commission at all. So where is the template I can hide the buttons/functions for download invoice (in vendor dashboard > order > “Download PDF Invoice”)?

    >> In order to remove to Download Invoice from Dashbord, add the following code to the function.php of the current active theme :

    add_filter('wcmp_my_account_my_orders_actions', 'wcmp_dashboard_my_orders_actions', 99, 2);
    function wcmp_dashboard_my_orders_actions($actions, $order_id) {
    unset($actions['pdf_download']);
    return $actions;
    }

    2. After checkout (order placement) pdf invoices should be send out automatically to the end customer for every different vendor where sth was bought (like the order confirmation mail). Could you please help me a bit with which hooks I should use etc.?

    >> We already let the vendor download their part of the customer invoice. So, you just have to send that invoice via email using this filter – woocommerce_email_attachments

    Let us know if you have any further query.

  • pat-l
    Participant
    Post count: 26

    Thank you for your help, I really appreciate.

    It worked for me, so this topic can be closed.

    Thanks

  • WCMp Admin
    Keymaster
    Post count: 8424

    Thanks for the confirmation @patrick-losert 🙂

The topic ‘Setup direct invoice mailing to end customer after order was placed’ is closed to new replies.