• Resolved chodos

    (@chodos)


    Can I create a order with a custom ID? I receive orders with an ID via an external API and I would like to use this IDs on orders in WooCommerce. How to do it? Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can try using the 'woocommerce_order_number' filter and instead of changing the order ID, change the visual order number.

    Thread Starter chodos

    (@chodos)

    Thanks @vankaa, but it does not solve. This filter only changes what is displayed, the ID remains the same. I would like to change the ID in the database to find the order again with the ID that I receive through the API.
    But I do not think it’s possible, I’ll use metadata.

    Changing the ID is not possible. Save the new ID to the order meta and query the orders via the meta.

    Thread Starter chodos

    (@chodos)

    Okay, I’ll do it. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Order ID’ is closed to new replies.