Affirm Banner | Q2 2024

added by Latoya

Sync your catalog, create TikTok ads to showcase & sell your products, and install the TikTok Pixel and Events API (server-to-server connection) to fuel performance and measure results at scale! Directly from your dashboard, you can create advertising campaigns to promote your product sales, generate leads, and reach over one billion global users.

Don’t log TikTok sales in WooCommerce

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.

Author

timwalkerus

Current Status

Open

Last updated: July 4, 2023

1 comment

Log in to comment on this feature request.

  1. nathaneldo says:

    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;
    }
    }