• Resolved Wega Studios

    (@wegastudios)


    Hi, how can i retrieve the order id having _wcj_order_number?
    $order = wc_get_orders( array( ‘_wcj_order_number’ => $number ) );
    foreach( $orders as $order ) {
    // Get the Order ID
    $order_id = $order->get_id();}

    Thx Luca

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support David G

    (@gravid7)

    Hi @wegastudios

    Thanks for reaching out to us.
    You can [wcj_order_meta meta_key=”_wcj_order_number” before=”Order ID: “] shortcode to display custom order id.

    Let us know if you need further help.

    Thread Starter Wega Studios

    (@wegastudios)

    Thx for reply, but I need a query for a function in my import tracking number process, don’t need to display.

    Plugin Support David G

    (@gravid7)

    Hi @wegastudios

    For that, you can refer to this shortcode file from the below path.
    /wp-content/plugins/booster-plus-for-woocommerce/includes/shortcodes/class-wcj-shortcodes-orders.php

    Thread Starter Wega Studios

    (@wegastudios)

    Thx, i’ve done differently

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Retrive order id having custom order number’ is closed to new replies.