Created by: Fahad Mahmood & Alexandre Faustino
Stock Locations for WooCommerce will help you manage your products stock across multiple locations easily. If you have multiple physical stores or storage locations, like warehouses, this plugin may help you.
You can print the locations inside a product page on the frontend, with this shortcodes:
[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]
[slw_cart_message qty_from_location="location-slug" only_location_available="no"]Your custom cart message/HTML here[/slw_cart_message]
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.