The ActiveDEMAND WordPress plugin will automatically detect if WooCommerce is installed and will automatically present the WooCommerce functionality. Specifically:
- Post to an ActiveDEMAND Virtual Web Form on Order State Change
- Post to an ActiveDEMAND Virtual Web Form on cart abandonment
This callback is used for tracking abandoned stale carts. If a known user (i.e. is logged in) has created a cart and added items to the cart, and leaves without buying, you can post the data back to ActiveDEMAND to set up a gentle reminder that the products are in stock and how wonderful their lives would be if they came back and purchased. You require a corresponding web form with the following fields (in this order)
Product Data can be a 'Long Answer' text box.
Getting The Session
As the callbacks are server to server the purchaser cookie and the purchaser session may not be connected to the order. Thus you will see a form submit but not get the session data. To get the session data connected to the form you should insert our virtual form submit script on the the user signup page and the checkout page. This will ensure the contact form submit is connected with a session.
Place this on the following script on the checkout page and the login page of the site: