| 开发者 |
alexmigf
fahadmahmood invoicepress |
|---|---|
| 更新时间 | 2026年6月3日 13:25 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[slw_product_locations show_qty="yes" show_stock_status="no" show_empty_stock="yes" collapsed="no" stock_location_status="enabled"]
[slw_product_variations_locations show_qty="yes" show_stock_status="no" show_empty_stock="yes" collapsed="yes" stock_location_status="all|disabled|enabled"]
[slw_product_message is_available="yes" only_location_available="no" location="location-slug"]Your custom product message/HTML here[/slw_product_message]
Cart page
[slw_cart_message qty_from_location="location-slug" only_location_available="no"]Your custom cart message/HTML here[/slw_cart_message]
REST API
REST API endpoints (both accept GET and PUT requests):
/wp-json/wc/v3/products/id
/wp-json/wc/v3/products/id/variations/id (first ID is for parent product, the second one for the variation ID)
/wp-json/wp/v2/location/
/wp-json/wp/v2/location/id
This plugin requires at least WooCommerce 3.4.
Features
👉 1. How can we make them activate automatically during the import process? If you want to make them active, in Import settings check "Taxonomies (incl. Categories and Tags)", under this chose "Update only these taxonomies, leave the rest alone" and type "location" Use this with "custom fields: _stock_at_xxx" as warehouse number and import works perfectly.
👉 1. How auto order allocation work with multiple stock locations? [youtube http://www.youtube.com/watch?v=0UbAPmZ2Kco] 👉 2. How location priority work with auto order stock allocation? [youtube http://www.youtube.com/watch?v=9kGVJZNNxRk] 👉 3. What if all of my locations don't have the sufficient stock ordered? If order quantity is within the summation of all stock locations available stock quantity, it will be simply served. If not, auto allocation will not work so admin can decide if he want to deliver the order partially or wait for stock comes in. [youtube http://www.youtube.com/watch?v=4NXYr24OKFg] 👉 4. How location email works? [youtube http://www.youtube.com/watch?v=zdCdckXEbNw] 👉 5. Do you want to sell products from only one stock location? [youtube http://www.youtube.com/watch?v=rznc0WMbmh4] [youtube http://www.youtube.com/watch?v=7ZIv_d7prLA] 👉 6. How to make location selection required on cart page? [youtube http://www.youtube.com/watch?v=64N7-b90r3E] 👉 7. How does it manage the maximum qty. to order according to the stock in a location? [youtube http://www.youtube.com/watch?v=gmU3cnk0LjY] 👉 8. How to allow editing location values on orders after being reduced? https://github.com/fahadmahmood8/stock-locations-for-woocommerce/issues/90 [youtube http://www.youtube.com/watch?v=Q1Lq-cbv2hE]
Turn ON "Enable default location in frontend selection" from WooCommerce > Stock Locations for WC. This option will allow you to select default location for a product on Product Edit page. Now turn ON "Lock frontend location to default" and it will lock frontend location which is selected as default.
I prefer you to use the Github issues. You can submit a new one here GitHub
On settings page you can define a number. If location stock value will be less than the given number, it will display the stock value else will not show the exact number but a plus sign "+" just after the maximum number given. [youtube http://www.youtube.com/watch?v=nWj5MTLcPjI]
$slw_api_valid_keys is null during API validation. [Thanks to Tushar Tajane][21/10/2025]