Forum Replies Created
-
AuthorPosts
-
correction:
the foreach loop above should be nested – i.e something like$args = array( 'query'=>array( 'payment_status' => 'COMPLETED',//get completed orders only ), ); $data = wppizza_get_orders($args); foreach($data['orders'] as $order){ foreach($order['order']['items'] as $item){ //$item['cat_id_selected'] => [int]... //$item['item_in_categories'] => [array] ... } }to loop through each item of each order
sorry about that
PS: generally speaking, it’s only a word anyway, and there are css classes associated that would let you use the same background color as a “new” order (for example)
furthermore, you could also simply change “Acknowledged” to “New” (or whatever else you want it to be – maybe “New- Viewed” or something so at least there’s some distinction between the 2) in wppizza->localization “Admin Order History – Order Statuses”
No, sorry (not at the moment anyway)
that’s by design as – clearly – once you have clicked on it and seen it , it’s been viewed (in this case named as “Acknowledged” )however, you can set it simply back to “new” again, in the same popup screen (or after closing that popup box)
perhaps the following would be simpler in this case
https://docs.wp-pizza.com/developers/?section=function-wppizza_get_ordersi.e something along these lines
$args = array( 'query'=>array( 'payment_status' => 'COMPLETED',//get completed orders only ), ); $orders = wppizza_get_orders($args); /* items for each order */ foreach($orders['orders']['items'] as $item){ //$item['cat_id_selected'] => [int] category id the item was in when it was added to cart (as an item can belong to multiple categories) //$item['item_in_categories'] => [array] all categories an item belongs to (where key -> cat id) /* do some grouping by catid i would think here , or whatever it is you need to do */ }may i suggest this resource
https://docs.wp-pizza.com/developers/?section=create-your-own-sales-reportas all that data – and more -exists already
(see especially the wppizza_filter_report_datasets and wppizza_filter_reports_export_results filter hooks)PS: it seems to me you are also editing core files – that is never good idea
>Unfortunately, this is not possible
that’s not true.from the help screen:
“custom opening times: …. If you are closed on a given day set both times to be the same….”“Could not instantiate mail function” is a server/setup/host problem. this could be caused by all sorts of things but only you / your hosting provider will be able to know why and this is nothing that could be “fixed” in the wppizza plugin (as it’s not caused by it)
on place to check perhaps
https://www.acyba.com/acymailing/246-could-not-instantiate-mail-function.html
but there are also 100’s of possible solutions if you google for “Could not instantiate mail function”PS: I assume “myemail” is in fact a valid email address of course (otherwise that is of course the issue right there)
no, sorry
but there’s the cloudprint extension that allows you to directly print an/the order and as that is not an email no subject line would get printed (alongside the concept of printing an order automatically of course)
https://support.wp-pizza.com/downloads/wppizza-google-cloudprint/there’s also the option to print the order from the order history (wppizza->order history) , which would also not include the subject line (as this is also not an email as such)
>When I print the order in the email, always comes with the header…
you have to look at your email client (software) manual – this has nothing to do with wppizza. i cannot help you thereas it stands, iOS (iPad / iStuff) does not support the automatic play of an audio sound (or video as it happens) without users interaction
(as it in fact states in that particular setting: “Note: this might not work with all browsers” )
No sorry. there’s no provision for that
wppizza->meal sizes
wppizza->order settingsyou don’t *have* to delete the old postcodes (they just will be ignored with other delivery settings) but you can if you want to
if at some point you want to switch back to your old delivery settings, then they would already be set up if you don’t delete themit’s entirely up to you really on that front
because you have not set any settings
please read the big red stuff in the postcode plugin
and if you never every delivery fro free, simply set the number when free delivery applies to somthing impossibly high
(though i would think if someone orders for 1000 you might want to consider waiving delivery costs, no ?)presumably the option above that “kostenfreie lieferung wenn .. etc ” and then set the conditionals per postcode (like before, except that you will have some more/other options that are relevant to that setting)
just don’t set it to “fixed delivery costs” then
and it says – “Mindestbestellwert für die Lieferung 50,00 €” (i.e exactly what the settings suggest it should do)
i cannot see any issuewithout a link to your site i cannot comment
This reply has been marked as private. -
AuthorPosts