WP Manifestindependent plugin directory
manifest / ecommerce / xilnex-integration

Pharmacy Pickup & Delivery

WooCommerce integration for pharmacy pickup and delivery options

★ 0stars

Install

Download source zip No release zip yet

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

  1. Upload the plugin files to /wp-content/plugins/pharmacy-pickup-delivery
  2. Activate the plugin through the WordPress admin panel
  3. Configure the API settings in WooCommerce > Pharmacy API
  4. Enable shipping methods in WooCommerce > Settings > Shipping

API Integration

The plugin requires the following API endpoints from the Pharmacy Dashboard:

Required Endpoints

  1. Outlets/Branches

    GET /logic/v2/Outlets
    • Fetches all pharmacy branches/outlets
    • Used for pickup location selection and delivery branch assignment
  2. Stock Levels

    GET /logic/v2/Stocks/Filter

    Parameters:

    • outlet (string) - The outlet/branch ID
    • Used for real-time stock availability checks and synchronization
  3. Sales/Orders

    POST /logic/v2/Sales
    • Creates new orders in the Pharmacy Dashboard
    • Sends order data including customer info, items, branch, and shipping method
  4. Order Status Update

    POST /logic/v2/Sales/{id}/status

    Parameters:

    • id (string) - The order ID
    • status (string) - New order status
    • Used to sync order status changes

Optional Endpoints

  1. Location Price

    GET /logic/v2/LocationPrice
    • Fetches location-specific pricing
    • Can be used for branch-specific pricing
  2. 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

  1. Go to WooCommerce > Pharmacy API
  2. Enter the following:
    • API Base URL
    • API Key
    • API Secret

Shipping Methods

  1. Go to WooCommerce > Settings > Shipping
  2. Enable and configure:
    • Pharmacy Pickup
    • Pharmacy Delivery
  3. 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