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.
Enabling Live Notifications
Section titled “Enabling Live Notifications”- Go to WP Admin > WB Plugins > Woo Sell Services > Notification.
- Enable Conversation Notification to create in-app notifications.
- Enable Conversation Notification Tab to show the Notifications tab in My Account.
Where Notifications Appear
Section titled “Where Notifications Appear”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.
Notification Events
Section titled “Notification Events”| 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 |
Managing Notifications
Section titled “Managing Notifications”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).
Notification Pagination
Section titled “Notification Pagination”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;} );Customizing Notification Messages
Section titled “Customizing Notification Messages”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.
Storage
Section titled “Storage”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.

