=== Fulfillment 3PL Lightweight ===
Contributors: atakanau
Tags: inventory, 3pl, fulfillment, logistics, warehouse
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Author link: https://en.programs.com.tr
Donate link: https://buymeacoffee.com/atakanau

A technical bridge for managing incoming stock requests and sub-site fulfillment automation in WooCommerce multisite environments.

== Description ==

[Fulfillment 3PL Lightweight](https://en.programs.com.tr/2026/03/fulfillment-3pl-lightweight.html) is a performance-optimized technical solution designed for 3PL (Third Party Logistics) providers and warehouse managers operating within a WordPress Multisite network. It provides a standardized framework for sub-sites (vendors) to submit Advanced Shipping Notifications (ASN) and manage inventory synchronization with a central fulfillment center.

**Core Technical Features:**

* **Incoming Stock Requests (ASN):** Enables sub-sites to log "Incoming Stock Requests" including product selection, declared quantities, and arrival notes.
* **Database Optimization:** Uses custom relational database tables (`ful3pl_incoming_reqs` and `ful3pl_incoming_items`) instead of standard WordPress postmeta to ensure zero performance degradation at scale.
* **Network Administration:** Automated sub-site provisioning tools for network administrators, including role assignments and WooCommerce pre-configuration.
* **Granular Stock Control:** Logic hooks to restrict or permit stock level modifications based on request status and user capabilities.
* **No External Dependencies:** The "Lightweight" version operates entirely within your own WordPress environment with no external API calls or third-party server requirements.

The plugin follows strict WordPress security standards, employing nonces for all request states, capability-based access controls, and $wpdb parameterized queries for data integrity.

== Installation ==

1. Upload the `fulfillment-3pl-lightweight` directory to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress (Network Activation is recommended for Multisite environments).
3. If using Multisite, access the "Fulfillment 3PL" menu in the Network Admin to manage sub-sites.
4. On individual sites, navigate to the "Warehouse" menu to begin submitting stock requests.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =
Yes, the core inventory and product management logic relies on WooCommerce. The plugin integrates with the WooCommerce product database to identify items for stock requests.

= How does the "Lightweight" approach differ from other solutions? =
Many 3PL integrations rely on heavy external REST API polling. This plugin operates directly within the WordPress database using optimized custom tables, resulting in significantly lower CPU and memory usage during stock synchronization processes.

= Is it compatible with non-multisite installations? =
While the core stock request logic can function on single-site installs, the plugin is architected with a focus on Multisite "Network Admin" workflows for multi-vendor 3PL operations.

== Changelog ==

= 1.0.0 =
* Initial release.
* Implementation of Incoming Stock Request (ASN) module.
* Network Admin sub-site provisioning tools.
* Performance-optimized database schema initialization.