Vendor New Order Mail – Columns for Commission &Total

MultivendorX

Resolved
Viewing 7 reply threads
  • Author
    Posts
    • #187604
      dennis
      Participant

      I want my Vendor New Order mails to include an extra column with the actualy price, the customer has paid.

      So if the Vendor receives 80 % of the order (including taxes), I want it to have a column called “Commission” with the 80 %, but I also want another column with “This is what the customer paid”.

      For example for at product costing $100:

      Image – Product – Commission – Customers Price
      x – Product #1 – $80 – $100

      Shipping charge = $59
      Shipping for vendor = $39

    • #187609

      Hi @dennis, the flow you are looking for i.e.
      1. So if the Vendor receives 80 % of the order (including taxes), I want it to have a column called “Commission” with the 80 %, but I also want another column with “This is what the customer paid”.
      2. How can I split the shipping charge with the vendor? So if I charge 59 in shipping including tax, I want the vendor to get 39 including tax, and I keep 20 including tax.

      Bith of this flow, requires custom code. DO you have any developer so we can assist you with this.

    • #187618
      dennis
      Participant

      Yes, we can code it outselves – we can do all the custom code needed.

      We just need a bit of assistance in how to achieve what we want 🙂

      / Dennis

    • #187645

      @Dennis, the tram will share the hook/filter for this.

    • #187731

      Hi,
      To update/modify our vendor new order email template just Override this template by copying it to yourtheme/MultiVendorX/emails/vendor-new-order.php.
      Thanks

    • #189248
      dennis
      Participant

      I get that – but what I need is to know which hook I use to add a column more, and add the values without commissions?

      So what I need to know:
      – Which hook do I use to add one more column.
      – How do I populate the column with the price of the goods (incl. VAT, before any commission is subtracted)

    • #189281

      Hi,
      Using below hook you can add a new column

      do_action('mvx_after_vendor_order_table_header', $order, $vendor->term_id);
      Copy

      To add column data use below hook

      do_action('mvx_after_vendor_order_item_table', $item, $order, $vendor_id, $is_ship);
      Copy

      You have the $order variable in above hook, So you can get all order related data from here.
      Kindly checkout the link – https://www.businessbloomer.com/woocommerce-easily-get-order-info-total-items-etc-from-order-object/

      Regards,

    • #192203

      It’s been a while and we have not heard back from you . We presume your query is solved. We are closing this thread . If you face issue in future please open a new thread .

Viewing 7 reply threads

The topic ‘Vendor New Order Mail – Columns for Commission &Total’ is closed to new replies.