Olly

Forum Replies Created

Viewing 20 posts - 4,221 through 4,240 (of 4,431 total)
  • Author
    Posts
  • in reply to: Is there anything on the roadmap for creating… #4088
    Olly
    Admin & Mod

      there’s a beta plugin now (“Preorder”), if anyone wants to test things…?!

      https://www.wp-pizza.com/extensions/

      in reply to: Adding custom items to basket #4086
      Olly
      Admin & Mod

        Hi

        re additional shipping fees: you could use the wppizza_filter_order_summary_session filter (you will have to recalculate totals etc again though)

        see here https://www.wp-pizza.com/topic/filter-options/

        re SMS: a good starting point would probably be here:
        https://www.wp-pizza.com/topic/run-action-on-status-update-admin/

        (you will probably want to run an ajax function that does what your particular sms gateway needs it to do when the status changes to “processed” for example)

        in reply to: after every order #4084
        Olly
        Admin & Mod

          so, as an example to send an sms to the customer after the order has been completed:
          (if you wanted to send a fax, or anything else for that matter, you can do something similar, depending and that particular api. the below should get you started though)

          
          !!!!OLD/LEGACY: USE THE EXAMPLE IN THE NEXT REPLY / FURTHER DOWN ON THIS PAGE!!!!
          add_action( 'wppizza_on_order_executed', 'my_sms_function',null, 2 );
          function my_sms_function($orderId, $orderTable) {
          global $wpdb;
          $getOrderDetails = $wpdb->get_row("SELECT customer_ini, customer_details ,order_ini, order_details FROM " .$wpdb->prefix . $orderTable . " WHERE id=".$orderId." ");
          /*customer ini is a serialized array*/
          $customerDetails=maybe_unserialize($getOrderDetails->customer_ini);
          /**if you just or additionally need all plaintext order and/or csutomer details as the appear in plaintext emails or need the whole array you can use any of the following*/
          //$customerPlaintext=$getOrderDetails->customer_datails;/*customer data plaintext. might want to to a nl2br*/
          //$orderPlaintext=$getOrderDetails->order_details;/*order data plaintext. might want to to a nl2br*/
          //$customerDetailsArray=maybe_unserialize($getOrderDetails->customer_ini);/*customer data array*/
          //$orderDetailsArray=maybe_unserialize($getOrderDetails->order_ini);/*order data array*/
          // also available (amongst others but probebly the most useful):  order_date, transaction_id
          /**so, assuming you are using the "ctel" field for the customer telephone number. (if you are using a custom field it would be ccustom1, ccustom2 etc)*/
          $customerTel=$customerDetails['ctel'];
          /**now implement however your sms gateway implements things to send things to that tel no**/
          //->send your sms to $customerTel
          return;
          }
          

          in reply to: Hi Oly, thanks for the support on the files… #3981
          Olly
          Admin & Mod

            Have not tried to print the order email on the printer yet, so the question is premature

            i know of other people that printed with this sort of printer without issues (as far as i can remember anyway)

            so, if there are issues let me know when you know

            in reply to: Hello there,is it possible to ban some meals… #3978
            Olly
            Admin & Mod

              yup.

              there’s the “Timed Menu” extension specifically for that purpose

              hope that helps

              in reply to: Hi OllyFirst of all thank you for this… #3976
              Olly
              Admin & Mod

                re a) all depends on what you call “nice looking” really and whether you are using phpmailer as mail delivery or the standard mail()/wp_mail().
                on either you could use the templates to edit to make them “look nice” and print those…or if using phpmailer for example , could use a filter ‘wppizza_phpmailer_sent;
                like so in your functions.php (there’s also another way of doing this if NOT using phpmailer , but its a bit more involved

                    add_action('wppizza_phpmailer_sent', 'my_custom_phpmailer',10,2);
                function my_custom_phpmailer($mail,$mailsent){
                if($mailsent){
                //**do something with the $mail object (like fomat and then send to a different email to print or , curl, post or whatnot)
                }
                }
                

                re b)
                i am actually in the middle of redesigning the whole thing and moving these comments and other bits and pieces to some sort of organized forums , having an area for codesnippets etc so it is – at least – searchable and not the mess that it is at the moment

                might take a bit longer but should/will make the whole thing a lot more manageable and userfriendly i would have thought (just never got the time to do this before and it’s definitely about time i agree)

                in reply to: Is there anything on the roadmap for creating… #3660
                Olly
                Admin & Mod

                  I don’t understand…

                  what exactly do you mean by “wouldn’t that be good for you” ?

                  in reply to: Hi, Im from brasil and here the most famous… #3974
                  Olly
                  Admin & Mod
                    in reply to: Hello Olly. Thanks Thanks and Thanks :) #3972
                    Olly
                    Admin & Mod

                      excellent

                      in reply to: Hello OllyI really have a big problem. I… #3970
                      Olly
                      Admin & Mod

                        apart from the above, also consider that – to output the whole xml as it does on ajax requests it it will – more than likely – run a ton of functions and queries to get there which will screw your server performance no end….

                        i haven’t looked at the code as to what it is exactly doing, but to me it seems the plugin runs the whole shebang everytime something is happening even if it has nothing to do with anything it does…

                        personally (and looking at the reviews – especially the one and two stars of that plugin ) I would really use something else

                        in reply to: Hello OllyI really have a big problem. I… #3969
                        Olly
                        Admin & Mod

                          that’s because your theme (or the plugin you are using to display the mobile site – i hazard a guess it’s this one http://wordpress.org/plugins/wordpress-mobile-pack/)

                          output the whole page when doing an ajax request for no reason i can see…

                          (not even talking about:
                          Compatible up to: 3.0.5
                          Last Updated: 2012-7-5
                          )

                          in reply to: Hi Olly,Great plugin, my question / feature… #3924
                          Olly
                          Admin & Mod

                            if you could let me have your email.

                            dev[at]wp-pizza.com

                            How would I find the ID’s then?

                            just look at the source code

                            in reply to: Hi Olly,Great plugin, my question / feature… #3922
                            Olly
                            Admin & Mod

                              got a link i can checkout ?

                              Just to clarify, the ID’s are they the sort order figures I have put in?

                              no, they are internal id’s (as they have to be /should be unique) because – in theory – you could have the same sortorder number or whatever for different items

                              in reply to: HI Olly, I have had a request from a… #3961
                              Olly
                              Admin & Mod

                                Hi

                                am a bit confused….

                                what do you mean by “page of the website ?”
                                I.e. what else could it possibly be ?

                                in reply to: Hello olly,its possible when you have… #3965
                                Olly
                                Admin & Mod

                                  yup.

                                  there’s the “timed menu” plugin, which does that sort of thing….

                                  https://www.wp-pizza.com/

                                  hope that helps

                                  in reply to: Hi Olly,we are starting to go online with… #3967
                                  Olly
                                  Admin & Mod

                                    yup. those two are linked together

                                    if you still want to have the javascript popup even when closed, your best bet is to hide the cart via js/css

                                    something like :
                                    if shop closed (there is a hidden element – .wppizza-open – only when its open), cart->css->display:none; (or something similar)

                                    in reply to: HI Olly, I have had a request from a… #3959
                                    Olly
                                    Admin & Mod

                                      i think i kind of get what you are saying ….
                                      are we essentially (correct me if i’m wrong) talking about a – let’s call it employee dashboard – that is a scaled down version of the order history ?

                                      so – for arguments sake – the same thing but only displaying customer and order details and one big button saying “processed” or something (without displaying order id etc etc ..?

                                      if so , let me have a bit of a think (am somewhat in the middle of a few other things)…

                                      shouldn’t be too taxing to do as it happens as the functionality is already there of course

                                      in reply to: Hello, I purchased the “WPPizza Add… #3963
                                      Olly
                                      Admin & Mod

                                        its custom groups you are probably looking for.. (it’s that big tab at the top when you are in the admin of the “add ingredients” administration)….

                                        in reply to: HI Olly, I have had a request from a… #3957
                                        Olly
                                        Admin & Mod

                                          to change it to processed

                                          just select/set the status from the dropdown list next to the order and set the status (next to “maximum results”) to be displayed on the top to just “new” for example….

                                          in reply to: Hi Olly thanks for this great plugin I’m… #3955
                                          Olly
                                          Admin & Mod

                                            is it possible to suppress the price if it’s 0?

                                            no, sorry (unless you edit the template of course)

                                            is it possible to set more than one tax

                                            if you enter prices without tax, then no, there’s only one tax and anything else would be beyond the scope of the plugin really

                                            having said that, if you are entering prices WITH tax, then you could just display the text as you wish (i.e something like “prices include tax at x% for a / y% for b” or something

                                            Also the shipping should be 8%

                                            at the moment, shipping is set as a price, rather than percent. however, i should probably be able to enable to set this as a percentage too … i will have to think about that for a bit

                                          Viewing 20 posts - 4,221 through 4,240 (of 4,431 total)