With receipt printer: Ingredient texts cut off from the right

WPPizza – A Restaurant Plugin for WordPress Support General Support With receipt printer: Ingredient texts cut off from the right

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #61013
    Umut
    Participant

      Dear Olly,

      My English not too good, so I’m writing with the help of Translator!
      If something is unclear, write to me.

      I have a problem that I haven’t solved for a long time.
      Now some customers want me to finally solve this problem.

      The problem:
      My customer has a receipt printer Epson TM-T20III.
      It works well. However, it does not print all selected ingredient texts on the receipt.
      Everything is okay from the left, but long texts are cut off from the right on the receipt.
      I also tried a second receipt printer but the result is the same.
      As far as I’m concerned, you can customize it with the CSS, but I’ve tried it for a long time and I couldn’t really customize it.

      In the mail you can see it quite normal and beautiful.
      I am sending you some screenshots.

      I would be very grateful if we can solve this problem.

      Best regardsbonprint: ingredienstext_cut of right
      screenshot from Mail body
      umut

      #61014
      Olly
      Admin & Mod

        looks to me like your css (body) width declarayion set in your print templates (wppizza->templates->print) that you use for your epson printer is simply to wide for the printer.

        #61015
        Umut
        Participant

          I have no idea how to limit it on the right side. if you give me a little tip that would be nice.

          Here is my Print Template CSS

          And here is my wish:

          #61016
          Olly
          Admin & Mod

            >Here is my Print Template CSS
            No it’s not. It’s your email template css

            your ‘green’ columns are ok because they are left aligned and happen to fit. Your overall css table css is too big for th eprinter
            the default is something like

            
            ....
            table{width:100%;margin:0 auto 10px auto;}
            ....
            

            but might be different in your case now

            you need to change that so it fits your printer. something like

            
            ....
            table {
            width: 80%;
            margin: 0;
            }
            ....
            

            for example or even absolute widths with/without some margins. There are many ways to do this and really depends on your printers interpretation of things

            PS: The default of 100% should actually be just fine .
            It might well be the case that the printer setup is actually incorrect here and it was setup for the wrong paperwidth …. I would check this first . If that’s all correct though , adjust the css as mentioned above

            #61019
            Umut
            Participant
              This reply has been marked as private.
              #61020
              Olly
              Admin & Mod

                >I changed the general CCS sign as you wrote but I didn’t notice anything.
                then you edited the wrong template . assuming you are printing from the print button in your order history, you need to edit the print template .
                But I don’t know how you send things to your printer of course . only you will know.

                Secondly, as mentioned above , I would really suggest you simply set the papersize of your printer to something else *regardless* of the paper you are using. I have seen this before (especially when using autoprint) that an 80mm printer does in fact only print 72mm. So you might find setting your printer to be 72mm with 80mm paper will be all you need to do .

                Yes, I know this is strange, but thermal printers are still stuck in th last century the way they work

                #61021
                Umut
                Participant

                  Dear Olly
                  Awesome, you saved my life. It now works quite well and appropriately.

                  Two more good questions:
                  1- would you like to add CSS export in the next update or version?
                  This allows me to export customized CSS to my demo site and quickly import it from client sites with ease. SO you save a lot of time instead of typing everything again.

                  2. Question about the street and number.
                  In the past we didn’t use a number and only wrote “Street and No” above the street field. But some end users didn’t write any numbers and only by street name the courier had problems to find the customers. That’s why we have an extra field as “No.” added as in my screenshot.
                  Now the number appears under the street name and that’s not nice.
                  How can I place number behind the street?

                  Screenshot for Street & Nr.

                  Thank you very much
                  umut

                  #61061
                  Olly
                  Admin & Mod

                    re 1: I don’t understand. Why would you type anything ? Simply copy and paste ( especially for the print templates where its only one field)
                    In other word – to answer your question – there are no plans to add a css export/import function. Sorry

                    Re 2: you can adjust your css as required (there are plenty of classes and id’s ) to align things as you need to

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • The topic ‘With receipt printer: Ingredient texts cut off from the right’ is closed to new replies.