Sequential Order Numbers for WooCommerce
Cette extension WooCommerce permet de définir automatiquement des numéros de commande séquentiels pour les nouvelles commandes. S’il y a des commandes existantes au moment de l’installation, les numéros de commande séquentiels commenceront par le numéro de commande actuel le plus élevé.
Cette extension nécessite WooCommerce 3.9.4 ou une version plus récente.
Aucune configuration n’est nécessaire ! L’extension est si facile à utiliser qu’il n’y a même pas besoin de le configurer. Activez-la et les commandes deviendront automatiquement séquentielles.
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).
Support Details
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.
More Details
- See the product page for full details.
- Check out the Pro Version.
- View more of SkyVerge’s free WooCommerce extensions
- View all SkyVerge WooCommerce extensions
Interested in contributing? You can find the project on GitHub and contributions are welcome 🙂
If you’d like to make your payment gateway compatible with Sequential Order Numbers, or other plugins that filter the order number, please make one small change. Instead of referencing $order->id
when storing order data, reference: $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
If you have access to the order ID or order object, you can easily get the sequential order number based on WooCommerce core functions.
$order = wc_get_order( $order_id );
$order_number = $order->get_order_number();