Hi,
I have CC running on a site, all seems to be running ok,
Following on from inconveniense of, not easily recognisable, non sequential order numbers I added
add_filter( 'woocommerce_order_number', 'customize_order_number', 10, 2 );
function customize_order_number( $order_id, $order ) {
$digits = 5;
$prefix = 'DS21-';
$suffix = '';
return $prefix . str_pad($order_id, $digits, '0', STR_PAD_LEFT) . $suffix;
}
to functions and a plugin Sequential Order Numbers for WooCommerce
I now get order numbers like this DS21-00006, what I wanted.
Unfortunately paypal gets the post id number thus making cross referencing payments, that have a problem, even harder to verify. As at peak the site could take 100 orders in a day it can be a pain.
Anyone know how to control what info gets sent to paypal?