Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.x
Multi-store. Franchise. Facilitator. AI tools.
Everything your marketplace needs - now in one platform.
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

-
DAYS
-
HOURS
-
MINUTES
-
SECONDS
20% Off Is Temporary. The Benefits Aren't.

HAPPY20

Join the MultiVendorX Facebook Community

Contact, share, and grow with thousands of MultiVendorX users around the world.

Code for Customer adresses and product detail in the vendor dashboard

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #145712
      James
      Participant

      Hello,

      I am wondering i still use this code :

      add_filter(‘wcmp_datatable_order_list_table_headers’, ‘test_callback’, 10, 2);
      function test_callback($orders_list_table_headers, $current_user_id) {
      $orders_list_table_headers[‘billing_name’] = array(‘label’ => __( ‘Noms et Adresses’, ‘dc-woocommerce-multi-vendor’ ));
      $orders_list_table_headers[‘products’] = array(‘label’ => __( ‘Articles’, ‘dc-woocommerce-multi-vendor’ ));
      return $orders_list_table_headers;
      }
      add_filter(‘wcmp_datatable_order_list_row_data’, ‘test_function’, 10, 2);
      function test_function($vendor_rows, $order) {
      $item_name = array();
      foreach ($order->get_items() as $item_key => $item_values) {
      $item_name[] = $item_values->get_name();
      }
      //print_r($item_name);
      $vendor_rows[‘billing_name’] = $order->get_billing_first_name() . ‘ ‘ . $order->get_billing_last_name() .'</br></br><b>Ship To:</b></br>’. $order->get_formatted_shipping_address();
      $vendor_rows[‘products’] = implode(” “, $item_name);
      return $vendor_rows;
      }

      maybe there is a different one for MVX i should use because the code refere to wcmp not mvx ?

      Best Regards.
      James.

    • #145739

      Not to worry James.As we have changed the plugin from WCMP to MVX you just need to replace wcmp with mvx in the code and the flow will work correctly.

    • #146087
      James
      Participant

      Hello,

      Perfect !
      You can close this thread 😉

      Best Regards.
      James.

    • #146108

      Thanks for the update.
      We would love it if you shared your experience by giving us 5/5 review here : https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post
      Seeing glowing reviews from existing customers makes others more comfortable knowing they’ll get the support they need should an issue with our services arise.

    • #146668
      James
      Participant
      This reply has been marked as private.
    • #146703
      promita
      Keymaster

      Hi James, use this code in your functions.php file.


      add_filter('mvx_datatable_order_list_table_headers', 'test_callback', 10, 2);
      function test_callback($orders_list_table_headers, $current_user_id) {
      $orders_list_table_headers['billing_name'] = array('label' => __( 'Noms et Adresses', 'multivendorx' ));
      $orders_list_table_headers['products'] = array('label' => __( 'Articles', 'multivendorx' ));
      return $orders_list_table_headers;
      }
      add_filter('mvx_datatable_order_list_row', 'test_function', 10, 2);
      function test_function($vendor_rows, $order) {
      $item_name = array();
      foreach ($order->get_items() as $item_key => $item_values) {
      $item_name[] = $item_values->get_name();
      }
      $vendor_rows['billing_name'] = $order->get_billing_first_name() . ' ' . $order->get_billing_last_name() .'</br></br><b>Ship To:</b></br>'. $order->get_formatted_shipping_address();
      $vendor_rows['products'] = implode(" ", $item_name);
      return $vendor_rows;
      }

      Let us know if you have any further query.

    • #146709
      James
      Participant

      Hello,

      Perfect thanks 🙂

      Now you can close the thread.

      Best regards.
      James.

Viewing 6 reply threads
  • The topic ‘Code for Customer adresses and product detail in the vendor dashboard’ is closed to new replies.
Shopping Cart
Launch Your Marketplace
in Days, Not Month
Get expert guidance to build, scale, and grow your MultiVendorX marketplace
Book Free Strategy Call
Trusted by 10000+ marketplace Owners
Scroll to Top