WebToffee Logo
  • Home
  • Plugins
  • Blog
  • Documentation
  • Support
Login
0

  • Getting started
    • Set up guide
  • Changelog
    • Version 1.0.1

Documentation/Sequential order number for WooCommerce/How to customize WooCommerce order numbers

How to customize WooCommerce order numbers

Last updated on November 2, 2021

Overview of the plugin

Auto-generate custom WooCommerce order numbers using prefix, suffix, and order date. You can append predefined date formats as prefixes or suffixes.

The plugin gives provision to create separate sequential order for free orders. For ease of management, you can have these orders separated from the major order sequence and create a sequence for free orders alone.

Auto-reset order numbers on a daily, monthly, or yearly basis to easily estimate the number of orders placed on a particular period.

You can generate odd or even-numbered order sequences with a custom increment counter.

Get started

  • First of all, install and activate the plugin, head on to WooCommerce > Settings from your WordPress dashboard.
  • Open the Sequential order number Pro tab.
    OR
  • Go to Settings page directly from plugin page after installation.

Settings

Following is the Sequential order number settings window. You can configure the settings as per your preference.

The sequential order number settings are categorized into three sections:

  • Customize order number format
  • Free order number format
  • General settings

Customize order number format

Order number format

Select an order number format with a combination of number, prefix, or date.

Choose an appropriate order number format from the drop-down. Based on your selection, the plugin will populate subsequent fields.

For instance, select the option [Prefix][Date][Number][Suffix] to populate following fields.

Prefix

The prefix will appear at the beginning of the order number. For eg, if you enter ‘wt-‘ as the prefix then your order number will begin with wt-.

Order date prefix

The order date will appear after the prefix. Pick any of the date formats from the list of pre-defined formats as given below:

Select one or more date formats and use alphanumeric characters to separate them.

For example,

  • Pick the date format [y]/[m]/[d] separated by ‘/’ to get the order date format as 21/07/28.
  • Choose [F] to have present month as date preix.

Suffix

The suffix will appear at the end of the order number. For eg, if you enter ‘-wt’ as the prefix then your order number will end with -wt.

Order number length

Maintains a fixed length for order number padded with ‘0’ excluding prefix or suffix. For example, entering order number length as 7 with order number 123 and prefix ‘wt’ will generate a sequential order number as wt0000123.

Start Number

Here you can add a custom starting number for your store’s order number.

Preview custom order number

Preview your custom order number with the newly input prefixes/suffixes and date formats to know how it will appear for WooCommerce orders.

Custom sequence for free orders

Enable to set separate sequence for free orders.

Free orders are orders having zero sub-total. Such orders can be generated when you offer coupons or discounts. For ease of management, you can have these orders separated from the major order sequence and create a sequence for free orders alone.

For example, you can set the prefix ‘free’ for all free orders of your store.

General Settings

Following are some of the common settings:

Increment counter

The order number sequence will be incremented by this value. For eg, if 2 is given, the order sequence will be 2, 4, 6, etc.

Reset sequential order number

Resets order number sequence based on the selected interval. If monthly is chosen, the order sequence will start a new sequence at the beginning of each month. 

For example, if you set auto-reset every month, you will have your order numbers in the sequence 1JAN2021, 2JAN2021, 3JAN2021, and so on in January, and the plugin automatically resets this, to begin with, 1FEB2021 the next month.

This feature allows you to easily estimate the number of orders placed on a daily/monthly/yearly basis.

Apply for all orders

Enabling this option will change starting number and/or prefix for all the existing and new orders in your store. If unchecked, it will only apply to the new orders.

Track orders

Enable the track order option to track the sequential order number. Insert the below-given shortcode to track orders.

[woocommerce_order_tracking]

WooCommerce offers this shortcode to link orders based on the order ID. You can add this shortcode as a post and use to track the orders.

Following is a screenshot of the order tracking page on a website created using the shortcode.

By entering the order ID and billing email corresponding to a specific order, you can view all the details regarding the order.

Search orders

You need to enable this option for searching plugin-generated orders from the WooCommerce orders page. If you disable it you will not be able to search custom order numbers from the orders page.

Finally, click on the Save Settings button. As a result, the store’s order numbers will be updated.

Following is a screenshot of an order page containing sequential orders.

In the below screenshot, the values assigned for each field are as shown below:

  • Starting number – 100
  • Order number format – [Prefix][Date][Number]
  • Prefix – WT
  • Order date format – ‘[Y]-‘ Current year (2021) with a hyphen as separator
  • Order number length – 6

Conclusion

To sum up, if order management takes up a lot of your time, then the plugin will be helpful in making it easier for you. If you are dealing with lots of orders in your store on a daily basis, you can save time tracking orders quickly.

  • Was this article helpful?
  • Yes, thanks!Not really
Get the plugin

On this page

  • Overview of the plugin
  • Get started
  • Settings
  • Customize order number format
  • Order number format
  • Prefix
  • Order date prefix
  • Suffix
  • Order number length
  • Start Number
  • Preview custom order number
  • Custom sequence for free orders
  • General Settings
  • Increment counter
  • Reset sequential order number
  • Apply for all orders
  • Track orders
  • Search orders
  • Conclusion

This article posted in Documentation, Getting started, Sequential order number for WooCommerce

Written by

Shesna

Shesna is a technical content writer for WebToffee. She is familiar in working closely with the SMEs to break down complex technical information into a concise, easy to understand manner.

Comments (4)

  1. Stipe

    March 31, 2022

    Hi, I have a plugin that creates QR code after order is finished so that it can be easily paid for BACS payment method. The plugin is getting data from original order_id, even though I have installed your plugin and added prefix which is applied to new orders and it is working perfectly well on all other woocommerce functions (emails, order list etc)

    Is there a shortcode or a tag with whom I can modify this plugin to get data from custom made order_id, created by your plugin? Thanks

    Reply
    • Mike

      Mike

      April 19, 2022

      Hi Stipe,

      If you like to make any of your other plugins (invoice/payment/shipment) compatible with the Sequential Order Numbers for WooCommerce, please make the below tweak.
      Instead of referencing $order->id or $order->get_id() when fetching order data, use $order->get_order_number()

      Also, it will be nice if you could share the QR code generator plugin name that you use. This will be helpful for us to add inbuilt compatibility in our future updates.

      Reply
  2. Chandresh

    January 14, 2022

    I want set auto order as state prefix and than order number is this possible.

    Reply
    • Mike

      Mike

      January 16, 2022

      Hi Chandresh,

      Thanks for reaching out. Presently our plugin does not offer any option for dynamic addition of state-based prefix with the order number. Thanks for understanding.

      Reply

Got any query? Please leave a comment or reach out to our support

Cancel reply

Your email address will not be published. Required fields are marked *

We develop awesome WordPress plugins & WooCommerce extensions to help build successful online businesses.

© 2021 WebToffee. All rights reserved.

Our plugins

  • GDPR Cookie Consent
  • PDF Invoices & Packings Slips
  • Product Import Export Plugin
  • User & Customer Import Export
  • Import Export Suite
  • Sequential Order Numbers
  • Smart Coupons for WooCommerce
  • URL Coupons for WooCommerce
  • PayPal Express Checkout
  • Stripe Payment Gateway
  • Subscriptions for Woocommerce
  • Product Catalog Sync for Facebook
  • PrintNode for PDF Invoices
  • Order, coupon, subscriptions for WooCommerce
  • WordPress Backup and Migration
View more +

Get Started

  • Plugins
  • Testimonials
  • Affiliates
  • We're hiring

Help & Support

  • Documentation
  • Documentation (Basic)
  • FAQ
  • Support

Company

  • Terms & Conditions
  • Privacy Policy
  • Refund policy
  • Support policy
  • License Activation

© 2021 WebToffee. All rights reserved.

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies. However you may visit Cookie Settings to provide a controlled consent.
Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of the basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website, to store user preferences and provide you with content and advertisements that are relevant. Such cookies will be stored on your browser but only upon procuring consent.

You will also have the option to opt-out of these cookies should you want to. But opting out of some of these cookies may have an effect on your browsing experience as per the descriptions elucidated against the respective categories below.

Necessary
Always Enabled

The cookies defines under this category are absolutely essential for the website to function. Hence they are loaded by default irrespective if user consent.

CookieDescription
PHPSESSIDThis cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing user sessions on the website. The cookie is a session cookie and is deleted when all the browser windows are closed.
viewed_cookie_policyThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not a user has consented to the use of cookies. It does not store any personal data.
Analytics

Analytics cookies help us understand how our visitors interact with the website. It helps us understand the number of visitors, where the visitors are coming from, and the pages they navigate. The cookies collect this data and are reported anonymously.

CookieDescription
_gaThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assigns a randomly generated number to identify unique visitors.
_gat_gtagIdentification code of website for tracking visits.
_gidThis cookie is installed by Google Analytics. The cookie is used to store information on how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visited in an anonymous form.
_hjidHotjar cookie. This cookie is set when the customer first lands on a page with the Hotjar script. It is used to persist the random user ID, unique to that site on the browser. This ensures that behavior in subsequent visits to the same site will be attributed to the same user ID.
_hjIncludedInSampleThis cookie is set to let Hotjar know whether that visitor is included in the sample which is used to generate heatmaps, funnels, recordings, etc.
has_recent_activityThis cookie is used to signal to the code repository website if the user has browsed other website resources during the current session.
tk_aiGathers information for our own first-party analytics tool about how our services are used. A collection of internal metrics for user activity and is used to improve user experience.
tk_lrThis cookie is set by the JetPack plugin on sites using WooCommerce. This is a referral cookie used for analyzing referrer behavior for Jetpack.
tk_orThis cookie is set by the JetPack plugin on sites using WooCommerce. This is a referral cookie used for analyzing referrer behavior for Jetpack.
tk_qsGathers information for our own first-party analytics tool about how our services are used. A collection of internal metrics for user activity and is used to improve user experience.
tk_r3dThe cookie is installed by JetPack. Used for the internal metrics for user activities to improve user experience.
Advertisement

Advertisement cookies help us provide our visitors with relevant ads and marketing campaigns.

CookieDescription
_fbpThis cookie is set by Facebook to deliver advertisements when they are on Facebook or on a digital platform powered by Facebook advertising after visiting this website.
frThe cookie is set by Facebook to show relevant advertisements to the users and measure and improve the advertisements. The cookie also tracks the behavior of the user across the web on sites that have Facebook Pixel or Facebook social plugin.
Preferences

Preference cookies are used to store user preferences to provide them with content that is customized accordingly. This includes the language of the website or the location of the visitor.

CookieDescription
_gh_sessThis cookie is used to preserve users' states across page requests.
Save & Accept