using stock to filter in shortcode
-
Would it be possible to add parameters to the shortocode for stock quantity and backorder status? Something like this
[quick_order stock_quantity=”1” backorder=”yes,notify”]
basically a way to indicate minimum stock quantity to display variation and another way to display or not display the item based on the backorder status?
Would love to have these two options and in combination.
Examples of use:
– display items in stock only (1 and 1+) for permitting stock orders only,
– display items with more than X unit in stock min (X+) (for permitting bulk stock orders in page only, X being minimum order qty),
– display items with no stock but that can be ordered anyway (backorder: yes, notify) (for backorders only, removing non-stock-no-backorder clutter)
– display items with 1 qty stock but can be backordered (for all orders with no clutter)Maybe it’s a good idea to have a min and a max (optional) stock qty
Thanks ??
- The topic ‘using stock to filter in shortcode’ is closed to new replies.