Auto print – add how many pages to print

WPPizza – A Restaurant Plugin for WordPress Support Feature Requests Auto print – add how many pages to print

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #53056
    hansenL
    Participant

      for WPPizza – Autoprint,

      Can we add set how many pages to print? I was able to set it in google cloud print, but seems like the new plugin doesn’t have such feature.

      Clients wants to have 2 exact copy of the same order, one for kitchen, one for packaging. Thanks

      #53057
      Olly
      Admin & Mod

        as there are multiple different ways to use the plugin (like storing the order emails somewhere or sending things to different printers etc ) there is no global “number of copies” or similar.

        However, you can simply enter the same printer id multiple times (comma separated) in the relevant field I would think.

        Hope that helps

        #53075
        Olly
        Admin & Mod

          i just got the following from another user, so it appears this is in fact not possible (at the moment at least) unless you add the same printer 2x somehow . If anyone has any better idea(s), i’d be more than happy to hear it.
          I’ll also have a rummage around if i can find some other way perhaps

          Just to let you know you can’t put the same printer id in twice (comma separated) when using printnode. I tried and it only printed one. I noticed in the printnode docs it says it ignores duplicate printer id’s. I can’t think of anyway at the moment to get it to do 2 copies, other than maybe adding the printer driver twice so I get 2 different IDs.

          #53095
          Olly
          Admin & Mod

            as of v1.2 multiple copies are now supported (as long as the printer supports this to start off with) by adding “:2” after the printer id
            i.e enter “123456:2” [to print 2 copies] , “123456:3” [ to print 3 copies] and so on

            also see https://www.wp-pizza.com/downloads/wppizza-autoprint/ for more details

            #53277
            petroni417
            Participant

              Hello there.
              I was wondering if it is (or could be in the future) possible to print orders on different printers based on “Delivery by Post/Zip-Code”. e.g. there could be an extra field in “Delivery by Post/Zip-Code” plugin, like the e-mail field, where we could enter the printer id (based on printnode) so that every order would be printed based on that.?!

              #53281
              Olly
              Admin & Mod

                @petroni417
                it’s not very likely that there will be an y extra fields along those lines (as no doubt everyone will want something different based on different things)
                However, I am happy to add a filter to the plugin in an update that allows people to set printids on whatever order value they want to base it on

                #53290
                petroni417
                Participant

                  Great. I only said that because I have 3 stores and the only way I could thing of to print the specific order on the specific store, was based on that model (Delivery by Post/Zip-code). You know better how things work, so I look forward for the update. Thank you!

                  #53296
                  Olly
                  Admin & Mod
                    #53358
                    petroni417
                    Participant

                      Well, that was quick. Thank you very much for the quick respond. Althought I have no idea how to use filters-actions etc. (where to put them, what to write ….)
                      Hopefully I’ll find something on youtube-google, so I can understand. Again thank you.

                      #53361
                      Olly
                      Admin & Mod

                        @petroni417
                        you might want to also have a look here then to start off with
                        https://docs.wp-pizza.com/developers/?section=filters-actions-functions

                        #53381
                        petroni417
                        Participant

                          Can you please help me further about this? If not, I can undertand.

                          The value I want this filter to work based on, is the “Label [post/zipcode or area]”, let’s say that i have 3 different areas, “AAA”,”BBB” & “CCC”. I have 3 different printers “111”, “222” & “333”.
                          I want when the order comes from “BBB” it should be printed on “222” and the default, when the orders comes from “CCC” it should be printed on “111” and “333” and the default.

                          how should i write the code?

                          
                          if($order_details['ordervars']['{some-order-value}']['value'] == 'some value' && $printnode_id = '123456'){
                          $printnode_id= '987654';
                          }
                          

                          sorry for being anoying

                          #53389
                          Olly
                          Admin & Mod

                            >how should i write the code?

                            you should write it depending on the parameters you will find in $order_details (it should be quite obvious what is what if you output that array somewhere ) and your requirements/conditionals as needed.

                            I don’t understand the question here

                            #53404
                            petroni417
                            Participant

                              Based on the previous example that I wrote, if it makes any sence to you, how is the wright way to write it?

                              if($order_details['ordervars']['{some-order-value}']['value'] == 'BBB' && $printnode_id = 'default'){
                              $printnode_id= '222';
                              if($order_details['ordervars']['{some-order-value}']['value'] == 'CCC' && $printnode_id = 'default'){
                              $printnode_id= '111,333';

                              Is this wright? will it work?

                              #53421
                              Olly
                              Admin & Mod

                                >will it work?
                                No. you *must* find the right $order_details parameter according to your requirements.
                                $order_details['ordervars']['{some-order-value}']['value'] is just a dummy/placeholder (it doesn’t even exist in the $order_details array)

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • The topic ‘Auto print – add how many pages to print’ is closed to new replies.