Skip to content

Live Notifications

The live notification system provides in-app notifications for service order events. Notifications appear in the WooCommerce My Account area and update using AJAX polling.

  1. Go to WP Admin > WB Plugins > Woo Sell Services > Notification.
  2. Enable Conversation Notification to create in-app notifications.
  3. Enable Conversation Notification Tab to show the Notifications tab in My Account.

Notifications are shown in the My Account > Notifications tab (endpoint services-notification). Both vendors and customers see their relevant notifications. The page can also be rendered anywhere with the [wss_services_notifications_shortcode] shortcode.

Event Vendor sees Customer sees
New service order Yes -
Requirements submitted Yes -
Requirements received - Yes
New conversation message Yes Yes
Delivery submitted - Yes
Delivery accepted Yes -
Delivery rejected Yes -
Review received Yes Yes

Users can act on notifications in two ways:

  • Mark as Read - clears the unread indicator.
  • Delete - permanently removes the notification.

Both actions use AJAX handlers with nonce verification and an ownership check (since 5.8.6).

Notifications are paginated. Use the wss_notifications_per_page filter to change the count per page:

add_filter( 'wss_notifications_per_page', function() {
return 20;
} );

Each event’s message template can be edited at WP Admin > WB Plugins > Woo Sell Services > Notification. The rendered text is generated from the event’s action type and the matching message template.

Notifications are stored in the wss_service_notifications custom table. Each row records the vendor ID, customer (user) ID, order/item/product IDs, a per-party notification flag (vendor_notifi, customer_notifi), a read flag for each party (vendor_read, customer_read), the creation time, and the event type (action). The displayed message is derived at render time from the action type and the notification message templates, not stored per row. See Database Schema.