Unverified
Add a Custom Prefix to WooCommerce Order Numbers
This snippet adds a custom prefix 'ORDER-' to all WooCommerce order numbers, making it easy to customize and track your orders uniquely." If you need any further adjustments or additional snippets, feel free to ask!
PHP
Voted: 1 by 1 user(s)
First, install and activate the Code Snippets plugin from your WordPress dashboard to use this snippet. Once activated, navigate to the Snippets section and click on "Add New." Enter a title like "Add Custom Prefix to WooCommerce Order Numbers" and paste the provided code into the code editor. After pasting the code, run the snippet everywhere, then save and activate it. Once activated, the custom prefix `'ORDER-'` will be added to all your WooCommerce order numbers automatically. Edit 'ORDER-' in the snippet as you like to use
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.4
Free & Pro
Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.
Pro Only (Coming Soon)
You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.
Last modified:
23/08/2024
This snippet has the following status:
Unverified
This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.
1
Please see some snippets below related to this snippet..
WooCommerce
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Replace the word dismiss (on the WooCommerce store notice) with an x
WooCommerce
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Redirect a product category to a page ID
WooCommerce
AI Verified
These are some popular snippets from this users codevault..
General
Unverified
Added: 3 weeks ago
Last Updated: 3 weeks ago
This snippet redirects all 404 errors to the homepage, providing a seamless user experience and preventing visitors from encountering dead ends
WooCommerce
Unverified
Added: 3 weeks ago
Last Updated: 3 weeks ago
This snippet adds a custom prefix 'ORDER-' to all WooCommerce order numbers, making it easy to customize and track your orders uniquely." If you need any further adjustments or additional snippets,...
WooCommerce
Unverified
Added: 3 weeks ago
Last Updated: 3 weeks ago
This snippet automatically cancels WooCommerce orders that have a 'failed' status for more than one week. The process is run daily to keep your order management clean and up-to-date.
Category
Snippet Status