If you want to send data to third party service, then you want to trust this connection.
So using Thank You page isn’t the best idea.
There are some hooks that you may want to check and which of them will be the best for you depends on what exactly are you trying to achieve…
You can use:
-
woocommerce_new_order
– it takes$order_id
as first param and it’s called whenever a new order is placed in WC. -
woocommerce_order_status_<status>
– it also takes$order_id
as first param and it will be called when the order changes status to (you can useprocessing
,completed
and so on as ).
Related Posts:
- Getting the gallery images from products in woocommerce?
- Get product details by url key in WordPress woocommerce
- Where is the “default attribute” values located in the phpMyAdmin in Woocommerce?
- Which WooCommerce hook do I need to use to place the coupon field after the checkout sidebar
- Reverse engineering of WooCommerce Storefront filters
- Use WooCommerce function in other WordPress plugin
- WooCommerce Cart – Group Products By Category
- WooCommerce – update order item price and recalculate totals
- Add product description (content) to WooCommerce customer processing order email
- Categories not shown in admin after adding woocommerce products via wp wc cli
- WooCommerce email text based on category && shipping zone && payment method [closed]
- woocommerce – get_image_size() deprecated [closed]
- Woocommerce: How to remove page title from storefront theme homepage
- Remove checkout fields with Woocommerce depending on one of several shipping methods
- Replace one coupon to another after coupon added
- WooCommerce Multi-Currency shortcode not working
- Avada & WooCommerce Customization – Replacing product_title in woo-config.php [closed]
- How to unset fields in woocommerce product quick edit?
- WooCommerce template page for category
- Custom PLU field in woocommerce email
- Woocommerce PHP site that shows table with orders from specific category
- How to get the webshop page in 2:nd language, with Polylang and Hyyan
- Subcategories not working when using shared base with custom taxonomy
- Change how the Subtotal Price in cart being calculated [closed]
- Display Advanced Custom Fields value in Woocommerce admin order details
- Some images aren’t shown on wordpress after installation on host
- Woo Related Products How to override the plugin script?
- Woocommerce how to alter shipping tax before checkout
- Woocommerce cart page – Add “Free” to the shipping label when shipping is 0
- Change product in cart when billing country is changed
- Line break on Product details [closed]
- WooCommerce add class name in the list [closed]
- How to display Woocommerce variations prices and descriptions
- How to override the title tag for woocommerce endpoints?
- Adding Transaction-Specific Conversion Tracking from Adwords into WooCommerce
- New field on checkout is shown but it’s not saved on the order details [closed]
- How to rewrite product permalinks in Woocommerce to use category slugs
- How to re-arrange this hooked content?
- Pre filter woocommerce products to remove a certain category of products
- WooCommerce Stripe Plugin not showing up in settings [closed]
- Woocommerce altered my homepage, and I can’t figure out how to revert it [closed]
- Woocommerce – Problem sorting and filtering products with different tax rates by price [closed]
- Why does my loop breaks the css below?
- How to add order status class to the body tag?
- Woocommerce – Change the template?
- Wooocommerce disable check_cart_item_stock if cart item has specific meta
- Force meta data on specific product type
- WooCommerce plaintext mail doesn’t display currency symbol
- Woocommerce, finding the ordinal number of a purchase for a certain product
- WP/WooCommerce multisite with polylang, product duplication between websites [closed]
- WooCommerce add_to_cart
- WooCommerce Simple Product Options List
- Show password while you are typing it on the “my account” login page
- Functions.php change for Woocommerce not working
- Woocommerce replace product page image with product tabs [closed]
- WooCommerce Bookings Plugin Not Saving Order ID
- Woocommerce Register Error
- Where is this text in a wordpress email coming from? Want to change/remove
- Add starts rating in woocommerce product comment from backend
- Need to check if user has completed a woo commerce payment
- How to get all customers cart from woocommerce API?
- WooCommerce login redirect based on cart
- How to reduce checkout loading time of `?wc-ajax=checkout`
- unable to customize query to get filtered products by meta_key
- Woocommerce + Google Analytics (Conversion Rate Not Working)
- send order detail to swiftpos
- WordPress Woocommerce REST API JSON Error
- data-value for custom woocommerce field showing in code but not visable on page load
- Update user meta when customer update their first name
- call_user_func_array() expects parameter 1 to be a valid callback, class ‘WC_Rapyd’ does not have a method ‘install’
- Woocommerce posts and products links works only once and then get 404 error
- How can we find a WooCommerce shop bottleneck? (only when cart is full)
- Conditional for product attribute page
- Setting Page Visibility for WooCommerce Default Page Doesn’t Work
- Woocommerce , how to set billing_address via JS?
- Using admin email in billing address
- Overriding Plugin function in your child theme
- Files names changed (with strange characters) after being uploaded to cpanel
- woocommerce_add_to_cart custom function called several times
- How do you reactive related products on WooCommerce when it has been disabled?
- Display product variations in shop page
- How can I locate where the actions are defined? [duplicate]
- Shortcodes in billing fields doesn’t work
- Update a user meta key based on WooCommerce product purchase
- How to fix spacing in address tab in my account page
- Adding time of order to Admin email for new order
- show multiple product photos on WooCommerce single page
- Hide add to cart when product variation has no price or is unavailable
- How to get the WooCommercer product variation image
- How can I hide the entire “Shipping Details” block on the admin side of Woocommerce? [closed]
- How to get _POST variable on WooCommerce product page (form on homepage)
- How do I put woocommerce cart page to my checkout page? [closed]
- CSS url rules not relative to css path in account endpoint areas. IE. subscriptions
- Can I remove WooCommerce specific product categories from shop managers?
- Fetch products with filter by similar categories at same time
- Trying query woocommerce product order by menu order and stock status
- editing product page template – getting template for related products not working
- Disable Woocommerce Block Editor
- Woocommerce backend sorting product drag drop by menu_order to date
- Conflict between Woocommerce Booking + Woocommerce Product Options [closed]