saraguirgis / beelish

Beelish Files
0 stars 0 forks source link

Order multiple meals from calendar page #58

Open saraguirgis opened 7 years ago

saraguirgis commented 7 years ago

This can come in handy...

// Get products containing a specific SKU. // Does partial matching, so this will get products with SKUs "PRDCT-1", "PRDCT-2", etc. $query = new WC_Product_Query(); $query->set( 'sku', 'PRDCT' ); $products = $query->get_products();

https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query

saraguirgis commented 7 years ago

Is there any way to have someone order by week or by month? As I'm going through it, it seems redundant if someone wants to order food every day adding one item at a time, choosing options and moving onto the next time. It's fine for now but would be cool to add in the future. Like maybe a box that says "order all meals for this week/month" and they would just choose the same portion, type, side & drink options.