Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi @jcousin,

    Thanks for reaching out. After placing an order by user both admin and vendor receive the order in their order sections (For admin: WooCommerce >> Orders, For Vendor: Frontend Dashboard >> orders). After marking order as shipped by vendor, Admin can distribute the commission to vendor.

    Regards,
    Akshaya Swaroop

    Thread Starter jcousin

    (@jcousin)

    Thanks for answering but I was talking about the email, new order email.

    If you can hrlp me with this,

    Thanks

    Hi jcousin,

    Please allow me to explain the vendor notification procedure. If the customer places order for a product, the vendor will not receive any notification until the order has been marked as either processing or as complete.

    The logic behind the flow is the admin will keep track of order placement and all the required processes happening before marking the order processing or completed. It will help to avoid any kind of confusion that may occur if all the mail notification goes to the vendor just after placing the order as the vendors don’t have the facility to check whether the payment has been received by the customer or not before delivering the product. Once the payment is received from the customer, the admin marks the order as processing or completed and a mail goes to the vendor for the fulfillment of the order.

    Regards,
    Akshaya Swaroop

    Thread Starter jcousin

    (@jcousin)

    Hi,

    I know it and I understand it, which I think is right, but the person for whom I’m doing the web asked me this so… As we say here, ‘When a captain says something, the sailor can’t say nothing’ !

    jeje
    thanks for your help

    I agree jeje, keep me posted with any other queries that you come across in future.

    Regards,
    Sandeep

    Thread Starter jcousin

    (@jcousin)

    Hi,

    Well I still need to know where I can change this, and add the vendor’s mail if possible.

    Thanks

    J

    Thanks for holding patience @jeje. After going through your requirement, I understand that you want vendors to receive email just after the customer places order (Please correct me if I misunderstand your requirement).

    If yes, then I would suggest you check this hook – woocommerce_checkout_order_processed. This hook contains details of all the data after order processing hence, you have to write email function here in order to enable the email feature for the vendors as soon as the order is placed by the customer.

    [ Signature moderated ]

    Thread Starter jcousin

    (@jcousin)

    Ok, so I should put something like this in the function.php:

    add_action(‘woocommerce_checkout_order_processed’, ‘send_mail’);
    function send_mail($order_id) {
    sending email
    }

    Thanks for you help.

    J

    That’s right @jcousin.

    [ Signature moderated ]

    Thread Starter jcousin

    (@jcousin)

    Really good, it’s working, but how can I get the email vendor, and the email template to send to the vendor ?

    I’d like to get the mail sent when the admin put the ‘processing’ status.

    Thanks a lot for your help.

    J

    Thread Starter jcousin

    (@jcousin)

    ALso about the hook, is’t better if I use:
    woocommerce_payment_complete_order_status

    As I’d like to send the email to the vendor, only if it’s paid

    ??!!

    Many Thanks

    Let me help you with your queries @jcousin. For the email vendor and email template, visit WC-Marketplace plugin >> Classes >> emails.

    As soon as the admin mark the order as “Processing”, the vendor receives a mail.

    If you want to send mail to the vendor only after payment then you can use the woocommerce_payment_complete_order_status hook.

    [ Signature moderated ]

    Thread Starter jcousin

    (@jcousin)

    Thanks for you help, but I don’t know how to get the vendor’s mail as there is no class for him.

    And also, how can I get the template for new order ?

    THanks a lot

    @jcousin – All the classes related to the vendor’s mail are available under emails folder of the plugin (WC-Marketplace plugin >> Classes >> emails).

    And for new order template, follow this path: dc-woocommerce-multi-vendor >> templates >> emails >> vendor-new-order.php.

    Hope this will help you.

    [ Signature moderated ]

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Send mail to vendor’ is closed to new replies.