I need to display the order id in a block I have in the page admin/store/orders/order_number.

I tried $orders->order_id and $order_id and nothing, the order number is present in url and too in order page but I dont know how to get it.

Kind regards,
Bunset

Comments

longwave’s picture

Status: Active » Fixed

You can extract it from the URL with:
print arg(3);

bunset’s picture

Perfect solution, works like a Chaman!

Thank you and best regards,
Bunset
http://www.e-duca.eu

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.