• Resolved muhammadasad

    (@muhammadasad)


    Hello, I am using custom order id plugin pro version with syntax YYYY-MM-OrderNo e.g. 2020045001. However, when I use the following piece of code, it only returns me the OrderNo i.e. 5001:

    $invoice_no = get_post_meta( $order_id, '_alg_wc_custom_order_number', true );

    Can you please tell how can I get the complete custom id with the YYYY and MM before it as well?

    Thank you.

    • This topic was modified 4 years, 7 months ago by muhammadasad.
    • This topic was modified 4 years, 7 months ago by muhammadasad.
Viewing 1 replies (of 1 total)
  • Plugin Support kenil802

    (@kenil802)

    Hi @muhammadasad,

    Regarding the query, can you please try using the following get_option for prefix and suffix:

    1) alg_wc_custom_order_numbers_prefix
    2) alg_wc_custom_order_numbers_suffix

    Also, please try using the above option for prefix and suffix as well as get_post_meta which is currently being used for order numbers.

    Please let us know how it goes.

    Regards,
    Kenil Shah

Viewing 1 replies (of 1 total)
  • The topic ‘Get custom order number from order id’ is closed to new replies.