Live Notifications
The live notification system provides in-app notifications for service order events. Notifications appear in the WooCommerce My Account area and update in real time using AJAX polling.
Enabling Live Notifications
Section titled “Enabling Live Notifications”- Navigate to WP Admin > Woo Sell Services > Notifications
- 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 displayed in the My Account > Notifications tab (endpoint: services-notification). Both vendors and customers see their relevant notifications here.
The notifications page can also be displayed anywhere using the shortcode [wss_services_notifications_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 perform two actions on notifications:
- Mark as Read — clears the unread indicator
- Delete — permanently removes the notification
Both actions use AJAX handlers with nonce verification for security.
Notification Pagination
Section titled “Notification Pagination”Notifications are paginated with a configurable number per page. Use the wss_notifications_per_page filter to change the default:
add_filter( 'wss_notifications_per_page', function() { return 20; // Show 20 notifications per page} );Customizing Notification Messages
Section titled “Customizing Notification Messages”Notification message templates can be customized in WP Admin > Woo Sell Services > Notifications. Each event type has its own message template field.
Notification Storage
Section titled “Notification Storage”Notifications are stored in the wss_service_notifications custom database table. Each notification records:
- Vendor ID and customer ID
- Order ID, item ID, and product ID
- Vendor and customer notification text
- Read status for both parties
- Timestamp and action type

