Order Tracker – Custom Order Number
-
So I am using the following snippet to add a prefix and suffix to my order number, can anyone help with getting the order tracker to work so the customer could enter the fuller order number in the correct format without stripping off the prefix/suffix?
add_filter( 'woocommerce_order_number', 'change_woocommerce_order_number' ); function change_woocommerce_order_number( $order_id ) { $prefix = 'PYXS-'; $suffix = '-44'; $new_order_id = $prefix . $order_id . $suffix; return $new_order_id; }
Is this even the right file to be looking at /woocommerce/order/form-tracking.php
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Order Tracker – Custom Order Number’ is closed to new replies.