Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Vender side order amount showing 0

WCMp Advanced Frontend Manager

Resolved
Viewing 5 reply threads
  • Author
    Posts
    • #137119
      Chris Baker
      Participant

      Our setup is like this – Admin will receive all the payments and admin will pay all the vendors offline.
      But we wanted to show the vendor order amount and all the details so they do not end up seeing 0 amount in all the vendor’s accounts. It will not look good to them.

    • #137121
      Chris Baker
      Participant
      This reply has been marked as private.
    • #137127
      This reply has been marked as private.
    • #137146
      Chris Baker
      Participant

      Hello,

      Yes, instead of 0 amount, the vendor should be able to see actual order amounts.

    • #137169
      Chris Baker
      Participant

      Amy update?

    • #137180

      Hi,
      Please add below code to your active theme function.php

      add_filter('wcmp_datatable_order_list_row_data', 'wcmp_order_list_modification', 10, 2);
      function wcmp_order_list_modification($data, $order) {
          $data['vendor_earning'] = $order->get_formatted_order_total();
          return $data;
      } 
      Copy

      Regards,

Viewing 5 reply threads

The topic ‘Vender side order amount showing 0’ is closed to new replies.