HI !!
I use a woocomerce action to detect add to cart ..
add_action( ‘woocommerce_add_to_cart’, ‘nftb_action_woocommerce_add_to_cart’, 10, 6 );
if its gives you false alert diseble the notifications in plugins settings
The woocommerce_add_to_cart
action is triggered when an item is added to the cart in WooCommerce. If this action is being triggered without any traffic on your site, it could be due to several factors:
- Automated Processes: Automated scripts or bots may be interacting with your site, causing the?
woocommerce_add_to_cart
?action to fire without actual user traffic. This can happen if you have any scheduled tasks, cron jobs, or third-party services that are testing or interacting with your WooCommerce store.
- AJAX Requests: The?
woocommerce_add_to_cart
?action can also be triggered by AJAX requests. If there are background processes or integrations (like inventory management systems) that are making AJAX calls to your site, they could be adding items to the cart without direct user interaction
If you like this Plugin , please add a positive review !!
Bye