Olly

Forum Replies Created

Viewing 20 posts - 1,041 through 1,060 (of 4,431 total)
  • Author
    Posts
  • in reply to: Adding Category to export #40465
    Olly
    Admin & Mod

      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

      in reply to: PopUp on Order History #40456
      Olly
      Admin & Mod

        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”

        in reply to: PopUp on Order History #40455
        Olly
        Admin & Mod

          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)

          in reply to: Adding Category to export #40426
          Olly
          Admin & Mod

            perhaps the following would be simpler in this case
            https://docs.wp-pizza.com/developers/?section=function-wppizza_get_orders

            i.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 
            	*/	
            }
            
            
            in reply to: Adding Category to export #40352
            Olly
            Admin & Mod

              may i suggest this resource
              https://docs.wp-pizza.com/developers/?section=create-your-own-sales-report

              as 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

              in reply to: set closed days via calendar #40286
              Olly
              Admin & Mod

                >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….”

                in reply to: Email Error 10003 #40260
                Olly
                Admin & Mod

                  “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)

                  in reply to: Print without header #40259
                  Olly
                  Admin & Mod

                    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)

                    in reply to: Print without header #40256
                    Olly
                    Admin & Mod

                      >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 there

                      in reply to: Sound on incoming orders on iPad #40225
                      Olly
                      Admin & Mod

                        as 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” )

                        in reply to: Discount on the second extra ingredient #40198
                        Olly
                        Admin & Mod

                          No sorry. there’s no provision for that

                          in reply to: Deleting options #40165
                          Olly
                          Admin & Mod

                            wppizza->meal sizes
                            wppizza->order settings

                            in reply to: delivery type #40151
                            Olly
                            Admin & Mod

                              you 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 them

                              it’s entirely up to you really on that front

                              in reply to: delivery type #40149
                              Olly
                              Admin & Mod

                                because you have not set any settings

                                please read the big red stuff in the postcode plugin

                                in reply to: delivery type #40146
                                Olly
                                Admin & Mod

                                  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 ?)

                                  in reply to: delivery type #40145
                                  Olly
                                  Admin & Mod

                                    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)

                                    in reply to: delivery type #40143
                                    Olly
                                    Admin & Mod

                                      just don’t set it to “fixed delivery costs” then

                                      in reply to: delivery type #40140
                                      Olly
                                      Admin & Mod

                                        and it says – “Mindestbestellwert für die Lieferung 50,00 €” (i.e exactly what the settings suggest it should do)
                                        i cannot see any issue

                                        in reply to: delivery type #40132
                                        Olly
                                        Admin & Mod

                                          without a link to your site i cannot comment

                                          in reply to: delivery type #40129
                                          Olly
                                          Admin & Mod
                                            This reply has been marked as private.
                                          Viewing 20 posts - 1,041 through 1,060 (of 4,431 total)