Changeset 1240787
- Timestamp:
- 09/08/2015 04:05:51 PM (11 years ago)
- Location:
- woocommerce-frontend-inventory/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (5 diffs)
-
woocommerce-frontend-inventory.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-frontend-inventory/trunk/readme.txt
r1021209 r1240787 4 4 Tags: WooCommerce, inventory, stock, variations 5 5 Requires at least: 3.3 6 Tested up to: 4. 0.07 Stable tag: 0. 6.18 License: G PLv2 or later9 License URI: http://www.gnu.org/licenses/gpl- 2.0.html6 Tested up to: 4.3 7 Stable tag: 0.7 8 License: GNU General Public License v3.0 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 10 11 This plugin allows you to publish a full inventory on a frontend page with a simple shortcode. Unregistered users will get a custom error message.11 This plugin allows you to publish an inventory of your in-stock WooCommerce products on a frontend page with a simple shortcode. 12 12 13 13 == Description == … … 15 15 What is WooCommerce Frontend Inventory for? 16 16 17 Do you want to provide some users with a **full inventory**of your WooCommerce installation without giving them access to the WooCommerce configuration area in the Dashboard?17 Do you want to provide some users with an inventory of your WooCommerce installation without giving them access to the WooCommerce configuration area in the Dashboard? 18 18 19 19 Place the shortcode, with the needed parameters where you want the inventory to appear. Syntax is: 20 `[woofi orderby={title|sku|stock} sort={ASC|DESC} ]`20 `[woofi orderby={title|sku|stock} sort={ASC|DESC} author_id={}]` 21 21 22 22 For example: … … 24 24 `[woofi]` will print the inventory, with the items ordered by title. 25 25 `[woofi orderby=sku]` will print the inventory ordered by SKU. 26 `[woofi orderby=sku sort=DESC]` will print the inventory sorteb by SKU in reverse order. 26 `[woofi orderby=sku sort=DESC]` will print the inventory sorted by SKU in reverse order. 27 `[woofi user_id=27]` will print the inventory including only products created by the user with id 27. 28 This latest feature is also exclusive: 29 `[woofi user_id=-33]` will print the inventory of all the products but the ones created by the user with id 33. 27 30 28 This plugin allows you to publish a full inventory on a frontend page with a simple shortcode. **Every registerd user** will be able to view it, while unregistered users will get an error message.31 Be aware that **every registered user** will be able to view the inventory, regardless for the role, while unregistered users will get an error message, that you can customise in the dashboard. 29 32 30 Please also note that the current version will not print any product marked in stock but with UNDEFINEDquantity. A future version will consider this case.33 Also note that the current version will not print any product marked in stock but with **UNDEFINED** quantity. A future version will consider this case. 31 34 32 35 Special thanks to [Mike Jolley](http://profiles.wordpress.org/mikejolley/) who provided the [initial script](https://t.co/CtLxf1XCVN). … … 46 49 47 50 = Many products are not listed, why? = 48 Please check whether or not they are in stock and there is a quantity defined.51 Please check that you are managing a stock for them and you defined a quantity. 49 52 50 53 == Changelog == 54 55 = v0.7 = 56 * Added a new parameter to filter by user ID 51 57 52 58 = v0.6.1 = … … 85 91 == Upgrade notice == 86 92 87 * Cleaning of the code to ensure best support for Wordpress 4. 88 * Added localization support. 89 * Added Italian localization. 90 * Added Spanish localization. 93 Great news! You can now filter by user ID - or exclude an user form the list. -
woocommerce-frontend-inventory/trunk/woocommerce-frontend-inventory.php
r1021207 r1240787 4 4 Plugin URI: http://www.mirkogrewing.eu/woocommerce-frontend-inventory/ 5 5 Description: This plugin provides a template that can be applied to a page in order to show a full inventory of products in WooCommerce. 6 Version: 0. 6.16 Version: 0.7 7 7 Author: Mirko Grewing 8 8 Author URI: http://www.mirkogrewing.it 9 9 10 Copyright: © 2013 Mirko Grewing (email : mirko .grewing@live.com)10 Copyright: © 2013 Mirko Grewing (email : mirko@grewing.co.uk) 11 11 License: GNU General Public License v3.0 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 21 21 * @category Plugin 22 22 * @package Class 23 * @author Mirko Grewing <mirko .grewing@live.com>23 * @author Mirko Grewing <mirko@grewing.co.uk> 24 24 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0 25 * @version 0. 625 * @version 0.7 26 26 * @link http://www.mirkogrewing.it 27 27 */ … … 89 89 'orderby' => 'title', 90 90 'sort' => 'ASC', 91 'user_id' => '', 91 92 ), $atts 92 93 ) … … 116 117 'orderby' => $orderby, 117 118 'order' => $sort, 119 'author' => $user_id, 118 120 'meta_query' => array( 119 121 array(
Note: See TracChangeset
for help on using the changeset viewer.