I would like an option to turn off logging TikTok sales in the WooCommerce website orders page.
Having TikTok orders logged into WooCommerce really isn’t helpful. We manage TikTok orders through the TikTok store website, not our website. Having those orders duplicated in WooCommerce buries orders placed through the website, making it easy to miss orders.
We have also had problems with with TikTok orders being entered multiple times into WooCommerce orders, producing bogus sales numbers and lowering inventory unnecessarily. Having the option to turn off TikTok order logging would solve that problem as well.
Open
Last updated: July 4, 2023
Log in to comment on this feature request.
In case this is helpful to anyone, below is some code that will delete TikTok orders when they are placed:
// Delete TikTok orders when they are placed
add_action(‘woocommerce_new_order’, ‘action_woocommerce_new_tiktok_order’, 10, 2);
function action_woocommerce_new_tiktok_order( $order_id, $order ) {
$order_id = $order->get_id();
if ($order->get_meta( ‘tiktok_order’ )) {
wp_delete_post($order_id);
} else {
return;
}
}