Created
November 13, 2012 16:48
-
-
Save WebEndevSnippets/4066907 to your computer and use it in GitHub Desktop.
WooCommerce: Add Prefix to WooCommerce Order Number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_order_number', 'webendev_woocommerce_order_number', 1, 2 ); | |
/** | |
* Add Prefix to WooCommerce Order Number | |
* | |
*/ | |
function webendev_woocommerce_order_number( $oldnumber, $order ) { | |
return 'WE' . $order->id; | |
} |
I have the same problem as GregorR1. Do you hapen to have solution for this?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to do this before the payment gateway? I need the prefix to be used in the gateway as I will have multiple sites using the one gateway account.