Hello, I wanted to see if someone else has expirenced this or maybe this is a function of woocommerce. In the past I have used Zapier for my woocommerce product updated trigger and this trigger would only go off when a change to the product was made.
However when using N8N built-in woocommerce product.updated function it triggers random 10 products to be sent through my workflow every minute causing strain on SQL and apis… I look at the logs on the products that were just passed through n8n and tell me the last time the product was updated was like a month ago. Is there something wrong with the Webhook that n8n builds out and has anyone seen this before?
WC quirk, not n8n — product.updated fires for stock decrements, lookup table regen, sales counter bumps, any metadata write. Add an IF node after the trigger comparing date_modified to now, only proceed if modified recently.
Thank you both. I did find out what was causing the random product updates. I noticed too never even thought. It was doubling down on the product updates too because I started my n8n with fetching product updates and ending with a product update. So I was causing a loop too!
What I did to solve is kinda suggestion via @achamm
I added a metadata "_n8n_updated" with the json.now time stamp. Then made a filter rule after the n8n wc product updated trigger to rule out that last 5min so it did not reprocess the same transaction. I added that same metadata to any woocommerce product update I had anywhere else in my n8n workflows. Cause if n8n proccesses a update no reason to listen for product update.