From WooCommerce Product Save to 'Add to Cart' in a Chat Conversation
php
dev.to
A store owner saves a product in WooCommerce. Three seconds later, a customer on the other side of the world finds that product by typing "something warm for winter" into a chat widget, adds it to their cart, and checks out. The store owner sees the purchase attributed to the chat session on their dashboard. That's a lot of systems talking to each other. Here's what happens at each step. Step 1: Product Save Triggers a Webhook The WooCommerce plugin hooks into woocommerce_update_pro