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 in real time using AJAX polling.

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

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

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

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
} );

Notification message templates can be customized in WP Admin > Woo Sell Services > Notifications. Each event type has its own message template field.

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