<
HomeOur WooCommerce troubleshooting guide can help you to ensure your integration is working effectively.
To do this complete the following:
wp_head
Ensure wp_head is in the <head> of your template. This allows WordPress to add styles, scripts and meta data into your website.
For example:
wp_head();
Read more: https://developer.wordpress.org/reference/functions/wp_head/
woocommerce_before_thankyou
Ensure the woocommerce_before_thankyou action is on the order success/thank you page. This allows us to add order tracking to your website.
For example:
do_action( 'woocommerce_before_thankyou', $order->get_id() );
Read more: https://wp-kama.com/plugin/woocommerce/hook/woocommerce_before_thankyou
wp
Ensure the wp action is run to allow us to track product views.
This is usually run by default.
Read more: https://developer.wordpress.org/reference/hooks/wp/
woocommerce_add_to_cart
Ensure the woocommerce_add_to_cart action is triggered when a product is added to the basket. This allows us to track add-to-basket events on your website.
For example:
do_action( 'woocommerce_add_to_cart', $cart_item_key, $product_id, $quantity, $variation_id, $variation, $cart_item_data );
Read more:
https://wp-kama.com/plugin/woocommerce/hook/woocommerce_add_to_cart
woocommerce_remove_cart_item
Ensure the woocommerce_remove_cart_item action is triggered when a product is removed from the basket. This allows us to track remove-from-basket events on your website.
For example:
do_action( 'woocommerce_remove_cart_item', $cart_item_key, $cart );
Read more:
https://wp-kama.com/plugin/woocommerce/hook/woocommerce_remove_cart_item
woocommerce_after_cart_item_quantity_update
Ensure the woocommerce_after_cart_item_quantity_update action is triggered when a basket item quantity is changed. This allows us to track when products are removed from the basket on your website.
For example:
do_action( 'woocommerce_after_cart_item_quantity_update', $cart_item_key, $quantity, $old_quantity, $cart );
Read more:
https://wp-kama.com/plugin/woocommerce/hook/woocommerce_after_cart_item_quantity_update