Plugin Directory

Changeset 1240787


Ignore:
Timestamp:
09/08/2015 04:05:51 PM (11 years ago)
Author:
Rashef
Message:

Added a new filter by author_id

Location:
woocommerce-frontend-inventory/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-frontend-inventory/trunk/readme.txt

    r1021209 r1240787  
    44Tags: WooCommerce, inventory, stock, variations
    55Requires at least: 3.3
    6 Tested up to: 4.0.0
    7 Stable tag: 0.6.1
    8 License: GPLv2 or later
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     6Tested up to: 4.3
     7Stable tag: 0.7
     8License: GNU General Public License v3.0
     9License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    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.
     11This plugin allows you to publish an inventory of your in-stock WooCommerce products on a frontend page with a simple shortcode.
    1212
    1313== Description ==
     
    1515What is WooCommerce Frontend Inventory for?
    1616
    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?
     17Do 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?
    1818
    1919Place 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={}]`
    2121
    2222For example:
     
    2424`[woofi]` will print the inventory, with the items ordered by title.
    2525`[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.
     28This 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.
    2730
    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.
     31Be 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.
    2932
    30 Please 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.
     33Also note that the current version will not print any product marked in stock but with **UNDEFINED** quantity. A future version will consider this case.
    3134
    3235Special thanks to [Mike Jolley](http://profiles.wordpress.org/mikejolley/) who provided the [initial script](https://t.co/CtLxf1XCVN).
     
    4649
    4750= Many products are not listed, why? =
    48 Please check whether or not they are in stock and there is a quantity defined.
     51Please check that you are managing a stock for them and you defined a quantity.
    4952
    5053== Changelog ==
     54
     55= v0.7 =
     56* Added a new parameter to filter by user ID
    5157
    5258= v0.6.1 =
     
    8591== Upgrade notice ==
    8692
    87 * Cleaning of the code to ensure best support for Wordpress 4.
    88 * Added localization support.
    89 * Added Italian localization.
    90 * Added Spanish localization.
     93Great 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  
    44    Plugin URI: http://www.mirkogrewing.eu/woocommerce-frontend-inventory/
    55    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.1
     6    Version: 0.7
    77    Author: Mirko Grewing
    88    Author URI: http://www.mirkogrewing.it
    99
    10     Copyright: © 2013 Mirko Grewing (email : mirko.grewing@live.com)
     10    Copyright: © 2013 Mirko Grewing (email : mirko@grewing.co.uk)
    1111    License: GNU General Public License v3.0
    1212    License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2121         * @category Plugin
    2222         * @package  Class
    23          * @author   Mirko Grewing <mirko.grewing@live.com>
     23         * @author   Mirko Grewing <mirko@grewing.co.uk>
    2424         * @license  http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
    25          * @version  0.6
     25         * @version  0.7
    2626         * @link     http://www.mirkogrewing.it
    2727         */
     
    8989                                    'orderby'   => 'title',
    9090                                    'sort'      => 'ASC',
     91                                    'user_id'   => '',
    9192                                ), $atts
    9293                            )
     
    116117                                    'orderby'           => $orderby,
    117118                                    'order'             => $sort,
     119                                    'author'            => $user_id,
    118120                                    'meta_query'        => array(
    119121                                                            array(
Note: See TracChangeset for help on using the changeset viewer.