woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
312 stars 112 forks source link

[Woo POS] Mechanism for filterable products #12761

Open iamgabrielma opened 5 months ago

iamgabrielma commented 5 months ago

Products must be filterable by n properties. Can we reuse what we already have?

Screenshot 2024-05-17 at 08 45 22

The current POS.Product model is as simple as:

public struct POSProduct {
    public let itemID: UUID
    public let productID: Int64
    public let name: String
    public let price: String

We can add some dummy property that is also filterable in App.Product so we can start a filtering mechanism for the new logic/UI. For reference, these are currently filterable by: Stock status, product status, product type, and product category.

Stock status (any, in stock, out of stock) seems a good initial point since we'll need this to limit product quantities to be added to a cart in the dashboard.

dangermattic commented 5 months ago

Thanks for reporting! 👍

iamgabrielma commented 5 months ago

P2: pdfdoF-51D-p2

Moving this to "to consider after MVP" for the moment.