• Resolved jaspash

    (@jaspash)


    Hello,

    I am working in a custom code and I need to Fetch ‘order number’ from $order object when the order is processed.

    I use this line of code ‘$idPedido = $order->get_id();‘ but I get the default order number but not the new order number generated by this plugin.

    Can you please help me with this?

    Thanks.

    • This topic was modified 1 year, 5 months ago by jaspash.
Viewing 1 replies (of 1 total)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @jaspash,

    Thanks for reaching out.

    Regarding your requirement, instead of referencing $order->id or $order->get_id() when fetching order data, use $order->get_order_number() to call the sequential number information.

Viewing 1 replies (of 1 total)
  • The topic ‘Fetch ‘order number’ from $order object’ is closed to new replies.