Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/wildan-m/xilnex-integration/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WooCommerce Pharmacy Pickup & Delivery Plugin
A WordPress plugin that integrates WooCommerce with a Pharmacy Dashboard system, enabling store pickup and delivery options with real-time stock synchronization.
Features
- Store Pickup and Delivery options during checkout
- Real-time stock level synchronization
- Branch/outlet selection
- Order synchronization with Pharmacy Dashboard
- Admin interface for monitoring sync status
- Error logging and handling
Requirements
- WordPress 5.8 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
- Access to Pharmacy Dashboard API
Installation
- Upload the plugin files to
/wp-content/plugins/pharmacy-pickup-delivery - Activate the plugin through the WordPress admin panel
- Configure the API settings in WooCommerce > Pharmacy API
- Enable shipping methods in WooCommerce > Settings > Shipping
API Integration
The plugin requires the following API endpoints from the Pharmacy Dashboard:
Required Endpoints
-
Outlets/Branches
GET /logic/v2/Outlets- Fetches all pharmacy branches/outlets
- Used for pickup location selection and delivery branch assignment
-
Stock Levels
GET /logic/v2/Stocks/FilterParameters:
outlet(string) - The outlet/branch ID- Used for real-time stock availability checks and synchronization
-
Sales/Orders
POST /logic/v2/Sales- Creates new orders in the Pharmacy Dashboard
- Sends order data including customer info, items, branch, and shipping method
-
Order Status Update
POST /logic/v2/Sales/{id}/statusParameters:
id(string) - The order IDstatus(string) - New order status- Used to sync order status changes
Optional Endpoints
-
Location Price
GET /logic/v2/LocationPrice- Fetches location-specific pricing
- Can be used for branch-specific pricing
-
Items/Catalog
GET /logic/v2/Items- Syncs product catalog
- Ensures product SKU consistency
API Requirements
All endpoints should support:
- Authentication (Bearer token)
- JSON request/response format
- Error handling
- Rate limiting (if applicable)
Configuration
API Settings
- Go to WooCommerce > Pharmacy API
- Enter the following:
- API Base URL
- API Key
- API Secret
Shipping Methods
- Go to WooCommerce > Settings > Shipping
- Enable and configure:
- Pharmacy Pickup
- Pharmacy Delivery
- Set up shipping zones and rates
Database Tables
The plugin creates the following table:
wp_pharmacy_stock_sync- Stores synchronized stock levels
Error Handling
The plugin includes:
- Error logging for failed API calls
- Stock validation during checkout
- Order sync status tracking
- Admin notifications for sync failures
Support
For support, please contact your system administrator or the plugin developer.
License
This plugin is licensed under the GPL v2 or later.
Changelog
1.0.0
- Initial release
- Basic pickup and delivery functionality
- Stock synchronization
- Order management
- API integration