• Hi,

    Want to show shipping cost of every order at order listing how to do it.

    Doesn’t want to show pending payment order at order listing panel.

    Kindly see this link https://ibb.co/Jxysndb

    Resolve the issue

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Doesn’t want to show pending payment order at order listing panel.

    Add this snippet to your site –

    add_filter( 'wcfmp_order_list_allowed_status', function( $allowed_status ) {
    	$allowed_status = "'completed','processing','on-hold'";
    	return $allowed_status;
    });
    add_filter( 'wcfmmp_is_allow_order_status_filter', '__return_true' );
    Plugin Author WC Lovers

    (@wclovers)

    Add this snippet to show shipping cost –

    add_filter( 'wcfm_orders_additional_info_column_label', function( $add_label ) {
    	$add_label = 'Shipping Cost';
      return $add_label;
    });
    add_filter( 'wcfm_orders_additonal_data', function( $customer_note, $order_id ) {
      global $WCFM, $WCFMmp, $wpdb;
      $order = wc_get_order($order_id);
      $shipping_cost = wc_price( $order->get_total_shipping(), array( 'currency' => $order->get_currency() ) ); // ADD YOUR CODE HERE
    	return $shipping_cost;
    }, 50, 2 );
    add_filter( 'wcfm_orders_additonal_data_hidden', '__return_false' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Want show shipping cost on order listing’ is closed to new replies.