• Resolved amc11

    (@amc11)


    Hi,

    How do I retrieve the order id that your plugin generates?

    Im trying:

    get_post_meta( $order->ID, ‘_alg_wc_custom_order_numbers_suffix’, true );

    It doesn’t work.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter amc11

    (@amc11)

    I managed to fix it with:

    $order->get_order_number();

    Thanks anyway.

    shasvat

    (@shasvat)

    Hi @amc11

    We are glad to know that you found the fix.

    Yes, that’s the correct way to get the custom order number.

    Regards,
    Shasvat shah.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get correct order id’ is closed to new replies.