plugin-icon

Sequential Order Numbers for WooCommerce

Este plugin mejora WooCommerce configurando números de pedido consecutivos para nuevos pedidos.
Valoración
3.8/5
Versión
1.11.1
Instalaciones activas
20K
Última actualización
May 7, 2025
Sequential Order Numbers for WooCommerce

This plugin extends WooCommerce by automatically setting sequential order numbers for new orders. If there are existing orders at the time of installation, the sequential order numbers will start with the highest current order number.

This plugin requires WooCommerce 3.9.4 or newer.

No configuration needed! The plugin is so easy to use, there aren’t even any settings. Activate it, and orders will automatically become sequential.

If you have no orders in your store, your orders will begin counting from order number 1. If you have existing orders, the count will pick up from your highest order number.

If you’ve placed test orders, you must trash and permanently delete them to begin ordering at «1» (trashed orders have to be counted in case they’re restored, so they need to be gone completely).

Detalles de soporte

We do support our free plugins and extensions, but please understand that support for premium products takes priority. We typically check the forums every few days (usually with a maximum delay of one week).

Sequential Order Numbers Pro

If you like this plugin, but are looking for the ability to set the starting number, or to add a custom prefix/suffix to your order numbers (ie, you’d prefer something like WT101UK, WT102UK, etc) please consider our premium Sequential Order Numbers Pro for WooCommerce plugin, which is available in the WooCommerce Store.

Más detalles

¿Quieres contribuir? Puedes encontrar el proyecto en GitHub y las aportaciones son bienvenidas 🙂 Si quieres que tu pasarela de pago sea compatible con Sequential Order Numbers, u otros plugins que filtren el número de pedidos, tienes que hacer un pequeño cambio. Cuando almacenes datos de pedido, en lugar de referenciar $order->id, haz referencia a $order->get_order_number()

This is compatible with WooCommerce core by default, as the order number is typically equal to the order ID. However, this will also let you be compatible with plugins such as ours, as the order number can be filtered (which is what we do to make it sequential), so using order number is preferred.

Some other notes to help developers:

Get an order from order number

If you want to access the order based on the sequential order number, you can do so with a helper method:

$order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_number );

This will give you the order’s ID (post ID), and you can get the order object from this.

Get the order number

Si tienes acceso a la ID del pedido o el objeto del pedido, puedes obtener fácilmente el número de pedido consecutivo basado en funciones del core de WooCommerce.

$order = wc_get_order( $order_id ); $order_number = $order->get_order_number();
Gratiscon el plan Business
Probado hasta
WordPress 6.8.3
Te puedes descargar este plugin para utilizarlo en tu sitio de .