Advanced Slack Integration

Overview

↑ Back to top

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 top

The 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.

  1. Navigate to My subscriptions.
  2. Find the Add to store button next to the product you’re planning to install.
  3. 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.

Adding a WooCommerce.com subscription to your store

Usage

↑ Back to top
  1. 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:

  1. Go to WooCommerce → Settings → Integration → Slack Integration
  2. 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
  3. 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:

  1. Go to WooCommerce → Settings → Integration → Slack Integration
  2. Navigate to the “Product Notifications” tab
  3. Configure alerts for:
    • Low stock
    • Out of stock
    • Back in stock
    • New reviews
  4. 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.

ShortcodeExample OutputDescription
[order_id]#10025The WooCommerce order number.
[order_total]$150.00The order’s total amount, formatted with the currency symbol.
[order_status]ProcessingThe current status of the order (e.g., Processing, Completed).
[order_date]May 5, 2024The date the order was created.
[payment_method]Credit Card (Stripe)The payment gateway/method used for the order.
[shipping_method]FedEx 2-DayThe shipping method selected by the customer.
[customer_name]John DoeThe customer’s billing first and last name.
[customer_email]john@example.comThe customer’s email address.
[customer_phone]+1234567890The customer’s billing phone number.
[customer_lifetime_orders_count]5The total number of orders this customer has placed.
[customer_lifetime_spent_amount]$1,250.00The total amount of money this customer has spent.
[first_purchase_date]May 5, 2022The date of this customer’s first purchase.
[shipping_address]123 Main St, NY, USAThe full formatted shipping address.
[billing_address]456 Billing Ave, CA, USAThe 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, JeansA comma-separated list of the product names in the order.
[product_sku_list]TSHIRT-01, JEANS-02A comma-separated list of the product SKUs in the order.
[product_quantities]2, 1A comma-separated list of the quantities ordered for each product.
[product_categories]Clothing, MenA comma-separated list of the categories the ordered products belong to.
[order_count]42Dynamic 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).

ShortcodeExample OutputDescription
[product_id]142The internal WordPress ID of the product.
[product_name]Premium T-ShirtThe title/name of the product.
[product_sku]TSHIRT-PREMIUMThe unique SKU (Stock Keeping Unit) of the product.
[product_price]$29.99The product’s current active price.
[product_regular_price]$39.99The product’s regular price (if it is on sale).
[product_sale_price]$29.99The product’s sale price.
[product_stock]42The current stock quantity of the product.
[product_stock_status]instockThe stock status (instockoutofstockonbackorder).
[product_type]simpleThe product type (simplevariablegrouped, etc.).
[product_weight]0.5 kgThe product’s weight, formatted with the unit.
[product_dimensions]10 × 20 × 5 cmThe product’s dimensions (L × W × H), formatted with the unit.
[product_tags]Summer, CottonA comma-separated list of the product’s tags.
[product_attributes]Color: Blue, Size: LThe 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.

ShortcodeExample OutputDescription
[revenue_today]$1,250.00The total revenue generated today.
[revenue_yesterday]$980.50The total revenue generated yesterday.
[revenue_last_7_days]$8,750.00The total revenue from the last 7 days (rolling).
[revenue_last_30_days]$42,300.00The total revenue from the last 30 days (rolling).
[revenue_this_month]$15,200.00The total revenue for the current calendar month.
[revenue_last_month]$18,450.00The total revenue for the previous calendar month.
[revenue_last_3_months]$56,700.00The total revenue from the last 3 calendar months.
[revenue_last_6_months]$112,500.00The total revenue from the last 6 calendar months.
[orders_today]15The total number of orders placed today.
[orders_yesterday]12The total number of orders placed yesterday.
[orders_last_7_days]85The total number of orders from the last 7 days.
[orders_last_30_days]320The total number of orders from the last 30 days.
[orders_this_month]210The total number of orders this calendar month.
[orders_last_month]195The total number of orders last calendar month.
[orders_last_3_months]580The total number of orders from the last 3 calendar months.
[orders_last_6_months]1,150The 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]42Dynamic shortcode. Count of orders filtered by status and time. Requires attributes: status and time.
[total_refunded]$1,250.00Dynamic 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: thresholdtimelimit.

Dynamic Shortcode Attributes:

  • timetodayyesterday3_days7_days15_days1_month3_months6_months9_months1_year2_yearsall_time
  • statuscompletedprocessingfailedcancelledrefunded
  • 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.

ShortcodeExample OutputDescription
[review_id]142The internal ID of the review/comment.
[review_author]John DoeThe name of the person who submitted the review.
[review_email]john@example.comThe email address of the reviewer.
[review_rating]5The 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, 2024The date the review was submitted.
[review_product]Premium T-ShirtThe 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 top

1. 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)

Related Products

Offer add-ons like gift wrapping, special messages or other special options for your products.

Add shipment tracking information to your orders.