UWS WooCommerce Integration
If you have WooCommerce installed, the WooCommerce tab will be shown. The WooCommerce tab allows you to configure SMS or voice call notifications for new orders and will create a ‘Virtual Group‘ in the Messages and Group Manager tabs, containing your WooCommerce customers.
Configuring Notifications
You can choose to send SMS or voice call notifications to your WooCommerce Customers and to a group of UWS users (for example, a group of administrators or shop staff).
The Woocommerce settings page is split into two sections; the top section is for configuring the message sent to the customer placing the order, the lower section is for configuring the message sent to the admin group.
In the “Enter your notification message”, you can enter the format of the SMS or voice call message that will be sent to the customer placing the order. The message can contain a number of merge tags. For example
- %woo_cust_firstname% – the first name of your Woocommerce customer
- %woo_cust_lastname% – the last name of the Woocommerce customer
- %woo_cust_number% – the Woocommerce customer’s phone number.
Click here for full list of merge tags.
Select the Woocommerce order statuses that you’d like to send notifications for. Both the standard and custom statuses are shown and you can enter a notification message for each status.
These individual status messages can be included in the customer notification message by using the merge tag %woo_status_message% into the “Enter your notification message” field.
To configure the message sent to your admin group, first select the UWS group containing the people you want to notify about new WooCommerce orders, then tailor the format of the message. The admin notification can be sent as an SMS or as a voice call message.
The merge tag %woo_status_message% can also be included in the admin notification.
WooCommerce Virtual UWS Group
Since latest version, you no longer need to synchronize your WooCommerce customers’ details (name and the billing phone number) with an existing UWS group. Instead, a ‘Virtual Group’, called “All WooCommerce Customers” will be added to the Messages and Group Manager tabs, reading the details directly from WooCommerce, meaning any changes, such as new customers, are reflected instantly in UWS, without the need to synchronize.
By default customers will completed orders will be shown in the virtual group “All WooCommerce Customers” group, however you can choose whether to include customers with orders in “on hold”, “pending” and “processing” statuses.
The virtual group will use the billing phone number, however this can be overridden using the filter ‘uws_get_woo_members_change_phonefield’, which takes the existing phone field value and a WooCommerce order object (retrieved from wc_get_order) as parameters.
e.g. $phone = apply_filters(‘uws_get_woo_members_change_phonefield’, $phone, $wc_order);