The Advanced Slack Integration for WooCommerce plugin provides comprehensive integration between your WooCommerce store and Slack, enabling real-time notifications for order status changes, product stock changes, customer reviews, and automated business reports.
Key benefits:
- Real-time order status updates in Slack
- Automated daily/weekly/monthly sales reports
- Low stock and out-of-stock alerts
- New product review notifications
- Customizable notification messages with dynamic shortcodes
- Support for public channels, private channels, and direct messages
- Product-specific notification settings
Installation
↑ Back to topThe simplest way to start using a product from WooCommerce.com is to use the “Add to store” functionality on the order confirmation page or the My subscriptions section in your account.
- Navigate to My subscriptions.
- Find the Add to store button next to the product you’re planning to install.
- Follow the instructions on the screen, and the product will be automatically added to your store.
Alternative options and more information at:
Managing WooCommerce.com subscriptions.
Usage
↑ Back to top- Get Bot Token:
- After installing ,In WordPress, go to WooCommerce → Settings → Integration → Slack Integration
- Paste the token in the “Slack Bot Token” field
- Click “Save Changes”
- Follow the steps in the video to create Slack Bot Token
- Click “Test Connection” to verify the setup
- If successful, you’ll see a confirmation message
2. Order Notifications
Configure notifications for various order status changes:
- Go to WooCommerce → Settings → Integration → Slack Integration
- Navigate to the “Order Notifications” tab
For each order status (Pending, Processing, Completed, etc.):- Enable/disable notifications . If enabled , it will send the notification . If disabled it will not send any notification to slack
- Select message type (Public Channel, Private Channel, or Direct Message) .
- Choose the specific channel or user. You can see your all channel and users in dropdown. You just need to choose one . The message will be delivered to the channel / member you will select .
- Customize the message using available shortcodes
Automated Reports: - Configure daily, weekly, and monthly reports
- Enable/disable notifications . If enabled , it will send the notification . If disabled it will not send any notification to slack
- Select message type (Public Channel, Private Channel, or Direct Message) .
- Choose the specific channel or user. You can see your all channel and users in dropdown. You just need to choose one . The message will be delivered to the channel / member you will select .
- Customize the message using available shortcodes
- Daily Reports – Sent Daily
- Weekly Report : Monday at 9:00 AM , 9:30 AM and 10:00 AM
- Monthly Report : First day at 9:00 AM , 9:30 AM and 10:00 AM
- High-Value Order Notifications :
This notification is designed to alert you immediately when an order exceeds a specific monetary threshold you define. It’s perfect for spotting big-ticket sales, VIP customers, or potential fraud attempts that need quick attention.
How It Works (The Logic):
Trigger: A customer completes checkout and an order is created (woocommerce_checkout_order_processed
).
Check: The plugin checks if this notification is enabled and then grabs the order total.
Condition: It compares the order total against your configured threshold amount (e.g., $500).
Action: If the order total meets or exceeds the threshold, the notification is sent to the specified Slack channel or user.
Configuration Settings:Enable notification
: Turn this feature on/off.Threshold Amount
: The minimum order total required to trigger the alert (e.g.,500
).Message Type
: Choose where to send the alert (Public Channel, Private Channel, or Specific Member).Message
: The customizable text sent to Slack. You can use order shortcodes here.
Repeat Customer Purchase Notification
This notification celebrates customer loyalty. It triggers when a customer places an order and their lifetime order count reaches a certain number you set.
How It Works (The Logic):
Trigger: A customer completes checkout and an order is created (woocommerce_checkout_order_processed
).
Check: The plugin checks if this notification is enabled and confirms the order is from a registered customer (not a guest).
Calculation: It fetches the total count of completed orders for that customer’s ID.
Condition: It checks if this new order brings their total order count to your configured threshold (e.g., 3 orders).
Action: If the condition is met, the celebration message is sent to Slack.
Configuration Settings:
Enable notification
: Turn this feature on/off.Order Threshold
: The number of orders a customer must have to be considered a “repeat” customer (e.g., 3
). Note: It triggers when they reach this number.Message Type
: Choose where to send the alert.Message
: The customizable text sent to Slack. You can use special order shortcodes and the [order_count]
shortcode.
6. Product Notifications
Configure notifications for product-related events:
- Go to WooCommerce → Settings → Integration → Slack Integration
- Navigate to the “Product Notifications” tab
- Configure alerts for:
- Low stock
- Out of stock
- Back in stock
- New reviews
- Product-Specific Settings:
- Edit any WooCommerce product
- Navigate to the “Slack Notification” tab
- Override global settings for this specific product
7. Shortcodes
Order Shortcodes
These shortcodes extract data from the WooCommerce order currently in context.
Shortcode | Example Output | Description |
---|---|---|
[order_id] | #10025 | The WooCommerce order number. |
[order_total] | $150.00 | The order’s total amount, formatted with the currency symbol. |
[order_status] | Processing | The current status of the order (e.g., Processing, Completed). |
[order_date] | May 5, 2024 | The date the order was created. |
[payment_method] | Credit Card (Stripe) | The payment gateway/method used for the order. |
[shipping_method] | FedEx 2-Day | The shipping method selected by the customer. |
[customer_name] | John Doe | The customer’s billing first and last name. |
[customer_email] | john@example.com | The customer’s email address. |
[customer_phone] | +1234567890 | The customer’s billing phone number. |
[customer_lifetime_orders_count] | 5 | The total number of orders this customer has placed. |
[customer_lifetime_spent_amount] | $1,250.00 | The total amount of money this customer has spent. |
[first_purchase_date] | May 5, 2022 | The date of this customer’s first purchase. |
[shipping_address] | 123 Main St, NY, USA | The full formatted shipping address. |
[billing_address] | 456 Billing Ave, CA, USA | The full formatted billing address. |
[order_items] | 2x T-Shirt ($40), 1x Jeans ($80) | A list of all products in the order with quantities and prices. |
[product_names] | T-Shirt, Jeans | A comma-separated list of the product names in the order. |
[product_sku_list] | TSHIRT-01, JEANS-02 | A comma-separated list of the product SKUs in the order. |
[product_quantities] | 2, 1 | A comma-separated list of the quantities ordered for each product. |
[product_categories] | Clothing, Men | A comma-separated list of the categories the ordered products belong to. |
[order_count] | 42 | Dynamic shortcode. See Statistics section below. |
Product Shortcodes
These shortcodes extract data from the WooCommerce product currently in context (e.g., in a low stock alert).
Shortcode | Example Output | Description |
---|---|---|
[product_id] | 142 | The internal WordPress ID of the product. |
[product_name] | Premium T-Shirt | The title/name of the product. |
[product_sku] | TSHIRT-PREMIUM | The unique SKU (Stock Keeping Unit) of the product. |
[product_price] | $29.99 | The product’s current active price. |
[product_regular_price] | $39.99 | The product’s regular price (if it is on sale). |
[product_sale_price] | $29.99 | The product’s sale price. |
[product_stock] | 42 | The current stock quantity of the product. |
[product_stock_status] | instock | The stock status (instock , outofstock , onbackorder ). |
[product_type] | simple | The product type (simple , variable , grouped , etc.). |
[product_weight] | 0.5 kg | The product’s weight, formatted with the unit. |
[product_dimensions] | 10 × 20 × 5 cm | The product’s dimensions (L × W × H), formatted with the unit. |
[product_tags] | Summer, Cotton | A comma-separated list of the product’s tags. |
[product_attributes] | Color: Blue, Size: L | The product’s attributes (e.g., for variable products). |
Statistics & Report Shortcodes
These powerful shortcodes calculate and return store-wide statistics. They are primarily used in automated reports.
Shortcode | Example Output | Description |
---|---|---|
[revenue_today] | $1,250.00 | The total revenue generated today. |
[revenue_yesterday] | $980.50 | The total revenue generated yesterday. |
[revenue_last_7_days] | $8,750.00 | The total revenue from the last 7 days (rolling). |
[revenue_last_30_days] | $42,300.00 | The total revenue from the last 30 days (rolling). |
[revenue_this_month] | $15,200.00 | The total revenue for the current calendar month. |
[revenue_last_month] | $18,450.00 | The total revenue for the previous calendar month. |
[revenue_last_3_months] | $56,700.00 | The total revenue from the last 3 calendar months. |
[revenue_last_6_months] | $112,500.00 | The total revenue from the last 6 calendar months. |
[orders_today] | 15 | The total number of orders placed today. |
[orders_yesterday] | 12 | The total number of orders placed yesterday. |
[orders_last_7_days] | 85 | The total number of orders from the last 7 days. |
[orders_last_30_days] | 320 | The total number of orders from the last 30 days. |
[orders_this_month] | 210 | The total number of orders this calendar month. |
[orders_last_month] | 195 | The total number of orders last calendar month. |
[orders_last_3_months] | 580 | The total number of orders from the last 3 calendar months. |
[orders_last_6_months] | 1,150 | The total number of orders from the last 6 calendar months. |
[top_selling_products] | Product A (Sold: 42, Revenue: $1,200.00)<br>Product B (Sold: 35, Revenue: $980.00) | Dynamic shortcode. Shows top-selling products. Requires attributes: time and limit . |
[order_count] | 42 | Dynamic shortcode. Count of orders filtered by status and time. Requires attributes: status and time . |
[total_refunded] | $1,250.00 | Dynamic shortcode. The total amount refunded in a specified time period. Requires attribute: time . |
[products_low_stock] | Product Name (Stock: 1) Product Name2 (Stock: 3) | Dynamic shortcode. Lists products at or below a stock threshold. Requires attributes: threshold , time , limit . |
Dynamic Shortcode Attributes:
time
:today
,yesterday
,3_days
,7_days
,15_days
,1_month
,3_months
,6_months
,9_months
,1_year
,2_years
,all_time
status
:completed
,processing
,failed
,cancelled
,refunded
limit
: A number (e.g.,5
to show the top 5 products).threshold
: A number for the low stock level (e.g.,5
for stock ≤ 5).
Review Shortcodes
These shortcodes extract data from a product review and are used in the “New Review” notification.
Shortcode | Example Output | Description |
---|---|---|
[review_id] | 142 | The internal ID of the review/comment. |
[review_author] | John Doe | The name of the person who submitted the review. |
[review_email] | john@example.com | The email address of the reviewer. |
[review_rating] | 5 | The rating given in the review (a number from 1 to 5). |
[review_content] | Great product! | The text content/body of the review. |
[review_date] | May 5, 2024 | The date the review was submitted. |
[review_product] | Premium T-Shirt | The name of the product that was reviewed. |
[review_product_link] | https://example.com/... | The direct URL to the product that was reviewed. |
Troubleshooting
↑ Back to top1. Notifications not sending
- Verify Slack bot token is correct
- Check Slack app has required permissions
- Ensure notifications are enabled in settings
2. Shortcodes not working
- Check for typos in shortcode names
3. Connection test fails
- Ensure no firewall is blocking outgoing connections
- Verify bot token is correct
- Check Slack API status (api.slack.com)