| 开发者 | skarb88 |
|---|---|
| 更新时间 | 2026年8月23日 03:20 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
WooCommerce SKU = MoySklad article
Free plugin scope:
No. Products and variations must already exist in WooCommerce. Only products whose SKU exactly matches the MoySklad article are considered.
No. The plugin does not impose a catalog-size limit. Products are read from MoySklad in bounded background batches.
No recurring schedule is included. An administrator must start each run manually. After that click, the run continues through one-off background queue events until all MoySklad product pages have been processed or the queue is stopped.
This plugin intentionally reads stock from one explicitly selected warehouse. It sends one warehouse UUID in the stock request and does not aggregate stock across warehouses.
Yes. The plugin exposes a stock-provider interface, a pssmwc_stock_provider filter, settings-page hooks, and the public PSSMWC\Sync::start() entry point. A separate add-on must contain its own scheduler, multi-warehouse settings, and aggregation implementation.
A missing or null stock value is treated as unknown and is not written to WooCommerce. It is not silently converted to zero.
The manual run still depends on one-off WordPress queue events between batches. When DISABLE_WP_CRON is enabled, configure a real server cron request for wp-cron.php; otherwise a queued run can remain in the Running state.
No. Deactivation stops the queue but retains settings and logs so the plugin can be reactivated safely. The legacy plugin option is also retained during migration to allow rollback.
Uninstall removes this plugin's settings, queue state, cached reference data, log table, and private mapping metadata. WooCommerce product prices and stock values already written by a completed synchronization are preserved. Data owned by the legacy plugin is not deleted.
wp_add_inline_script() instead of printing a raw script tag in PHP.max_execution_time, and a run stops before starting a batch that could not finish inside it.pssmwc_enable_loopback filter.pssmwc_stale_queue_ttl.DISABLE_WP_CRON.pssmwc_drain_time_budget for hosts with unusual execution limits.%i placeholder of $wpdb->prepare(), which raises the minimum WordPress version to 6.2.load_plugin_textdomain() call; WordPress loads translations on demand.pssmwc_render_stock_source_row, so an add-on that replaces the stock source owns a complete table row including its own header cell and field label.pssmwc_render_stock_source_field is retained and documented as cell content only, so add-ons written against 1.0.0 keep working unchanged.