• Hi

    Once an order is placed i want to store shipping rates by vendor id into “wcfm_marketplace_orders_meta”. As i inspect all the hooks there is no possibility to get shipping rates by vendor in case of multiple order on same order ID. So i want to store the data as custom meta and to be called later on.

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

    (@wclovers)

    Not required. WooCommerce already saved this.

    You may fetch this using such code snippet –

    global $WCFMmp;
    $vendor_shipping = array();
        if( $WCFMmp && $WCFMmp->wcfmmp_shipping ) {
        	$vendor_shipping = $WCFMmp->wcfmmp_shipping->get_order_vendor_shipping( $order );
        }

    Pass WooCommerce order object or order id to this function.

Viewing 1 replies (of 1 total)
  • The topic ‘Create WCFM Custom Order Meta’ is closed to new replies.