The thing is I’m using a BTCPAY plugin payment processor, when I activate your custom ordernumer plugin. Then it takes the custom ordernumbers, but it’s not finding the order_id(well post_id I geuss?)
Now they told me that I need to use this snippet and change it to my needs
function get_order_id_from_custom_order_style($orderid){
if(is_string($orderid)){
$result = preg_replace('~\D~', '', $orderid);
return $result;
}
return $orderid;
}
add_filter('woocommerce_order_id_from_number', 'get_order_id_from_custom_order_style', 1);
But it’s not working for me, it’s only finding the custom order numbers, and I don’t need the custom order number for it to work. I need the ordernumber that it gives you before your plugin is activated.
Created a ticket here also on their page| https://github.com/btcpayserver/woocommerce-plugin/issues/45
-
This reply was modified 4 years, 11 months ago by maxdamage101.