wc-ac-hook*.log
can be checked for errors.
/wp-content/plugins/
directory.If you are having problems syncing with ActiveCampaign then the first thing to check is for error messages in the debug log. To do this you must enable debug logging (if it has not been enabled by default).
/wp-content/uploads/wc-logs/wc-ac-hook*.log
or through the admin panel you now have the option to delete the log you are viewing at 'WooCommerce > System status > Logs'. WooCommerce will rotate logs daily and delete logs after 30 days by default.
You now have the option in settings to track order status. This means that contacts are created as soon as an order is created at checkout, and the suffix (pending), (failed), (processing), (on-hold), (cancelled) or (completed) will be appended to the last tags listed. The tags will be updated as the status changes. To give you an example of how this works:
The plugin now has the capability, through a checkbox at checkout (after order notes), to allow customers to opt in or out of email marketing. Allowing customers to subscribe through this method will trigger a form subscription on ActiveCampaign and trigger any associated actions e.g. subscribe to list, add tags and double opt in. To set this up, use the 'Signup to Marketing', 'Checkbox Label' and 'Marketing Form ID' options under the menu 'WooCommerce > Settings > Integration > WC-AC Hook'. When using this form subscription, you would typically use the form to subscribe the contact to a different list (to the ActiveCampaign List ID used for all shop contacts in the settings). This way you can have a separate list for marketing purposes with double opt in. Note that if you want to change the position of the checkbox or are using tools such as WooCommerce Checkout Field Editor then you may still use this capability using the following steps:
wc_ac_marketing_checkbox
ActiveCampaign have released version 3 of their API which supports 'Deep Data Integration' e.g. more order details such as order values and number of items purchased. ActiveCampaign have also launched their own integration with WooCommerce which is now available to account holders with 'Plus' plans and upwards. Given this development, there are no plans to add this capability to this plugin at this point in time.
Yes you can add multiple ActiveCampaign tags to a product separated by commas. Note that if you are using the option to track order status, the status will only be added to the last tag listed.
__DIR__
with __FILE__
to ensure compatibility with PHP 5.2