Olly

Forum Replies Created

Viewing 20 posts - 1,361 through 1,380 (of 4,454 total)
  • Author
    Posts
  • in reply to: GoodCom printers #35342
    Olly
    Admin & Mod

      ok, that’s because you are using (I assume ?!) a gmail/googlemail, hotmail or yahoo address

      none of these understand plaintext properly (not my fault – they used to , but not anymore. not the last time i checked anyway).
      for instance plaintext is not displayed in those using monospaced fonts unless you jump through many hoops and it would ask too much of the average user to set this up. therefore plaintext email would look like a right old mess

      therefore the plugin forces html with the “pre” tags to make this legible. you will find that not using a gmail/hotmail/yahoo address will give you proper plaintext

      alternatively there is also a filter that checks for those email addresses you could use to unset this behaviour for gmail
      like so

      
      /* not tested as such but should work */
      add_filter('wppizza_email_plaintext_to_webmail_domains', 'my_filter');
      function my_filter($email_domains){
      unset($email_domains[0]);//where 0 = @gmail. | 1 = @googlemail. | 2 = @outlook | 3 = @yahoo.| 4 =@hotmail.
      return $email_domains
      }
      

      but if you send plaintext emails to customers that have gmail accounts and use that filter, they would get the same mess

      in reply to: mutiple closing and opening times within one day #35338
      Olly
      Admin & Mod

        sorry, but this will not be done, as the possible permutations are endless and make any sensible formatting that takes account of all of those permutations nigh on impossible

        it actually also says so in the help screen of the admin opening times page under the “closed” tab
        and in the docs https://docs.wp-pizza.com/shortcodes/?section=openingtimes

        though I agree that it might be helpful to display this info in a few more places perhaps somewhere

        in reply to: SMTP not working, Error 503 #35337
        Olly
        Admin & Mod

          did you “verify that the domain or address is defined for this server.”
          test smtp emails simply use the default wp_mail from address (something like [email protected])
          whereas “live” emails so to speak use the settings in wppizza->settings ->emails

          i guess i should probably change this to be used for test emails too at some point.
          as it is what it is at the moment, have you tried doing a test email with an actual test order ?

          PS: when you test it, it does not even use any saved parameters but directly what you have typed into the formfields

          in reply to: SMTP not working, Error 503 #35333
          Olly
          Admin & Mod

            and also (just checking) are you using another SMTP plugin by any chance ?

            in reply to: SMTP not working, Error 503 #35332
            Olly
            Admin & Mod

              have you used/run the test there (i assume we are talking about the smtp settings section in the wppizza plugin) ?
              what does the output give you ?

              in reply to: mutiple closing and opening times within one day #35331
              Olly
              Admin & Mod

                sorry, but I do not understand what ‘show closed times at opening times’ is supposed to do …

                in reply to: GoodCom printers #35329
                Olly
                Admin & Mod

                  what exact html are you getting ?

                  in reply to: SMTP not working, Error 503 #35328
                  Olly
                  Admin & Mod

                    sounds more like it’s not set to use SMTP in the first place (i can assure you the password does get saved)

                    in reply to: GoodCom printers #35289
                    Olly
                    Admin & Mod

                      a) you dont need any of the require(WPPIZZA_PATH.’classes/class.wppizza.order.php’); etc
                      this is wppizza v2 stuff
                      please see https://docs.wp-pizza.com/developers/?section=action-wppizza_on_order_execute
                      all details are in the $order_details parameters
                      b) i cannot tell you what else you need for your goodcom printer to work. i have no knowledge about it. you will have to refer to the manufacturer information

                      (of course, if someone else reads this, has knowledge about it and wants to chime in, please go ahead)

                      in reply to: mutiple closing and opening times within one day #35261
                      Olly
                      Admin & Mod

                        may i draw your attention to the “closed times” and the help screen in wppizza->opening times

                        in reply to: GoodCom printers #35233
                        Olly
                        Admin & Mod

                          i can assure you, what’s private there is irrelevant . (essentially it says configure the printer following the user manual, to pull orders in “php mode””

                          its the original post that has the instructions

                          that said, that’s also based on wppizza v2 in v3 this would have to be based on this
                          https://docs.wp-pizza.com/developers/?section=action-wppizza_on_order_execute

                          in reply to: Different Styles by device #35165
                          Olly
                          Admin & Mod

                            typically you would do this kind of thing with css/css-mediaqueries
                            but I suppose you could run some kind of device detection script and the filter the style variable using this filter

                            https://docs.wp-pizza.com/developers/?section=filter-wppizza_filter_options

                            accordingly

                            in reply to: Ingredients WP Menu Name #35095
                            Olly
                            Admin & Mod

                              in other words: you need to translate the plugin using the po files

                              in reply to: Ingredients WP Menu Name #35094
                              Olly
                              Admin & Mod

                                works the same as here
                                https://docs.wp-pizza.com/faqs/?section=wppizza-in-other-languages

                                except it’s the subdirectory of the add ingredients plugin (obviously) and the po file you need to create is
                                wppizza_addingredients-de_DE.po reespectively

                                in reply to: change product layout #35006
                                Olly
                                Admin & Mod

                                  >which file should I change
                                  none
                                  you should look at the shortcode attributes – especially the elements attribute
                                  https://docs.wp-pizza.com/shortcodes/?section=by-category

                                  in reply to: pick ingredients causing error on frontpage #35000
                                  Olly
                                  Admin & Mod

                                    look at your console

                                    Failed to load http://cp23.www1.dk/~peppesp/wp-admin/admin-ajax.php: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.peppes-pizza.dk’ is therefore not allowed access.

                                    in reply to: Different closing time for pickup and delivery #34975
                                    Olly
                                    Admin & Mod

                                      already doable with these filters / functions

                                      https://docs.wp-pizza.com/developers/?section=filter-wppizza_filter_options
                                      https://docs.wp-pizza.com/developers/?section=global-wppizza-functions
                                      i.e somethimg along these lines

                                      
                                      add_filter('wppizza_filter_options', 'my_prefix_my_options');
                                      function my_prefix_my_options($wppizza_options){
                                      /* 
                                      on pickup , set your other closing times as you wish, 
                                      below closes shop everyday at 9PM 
                                      except on sunday where it will close at 8:30
                                      */
                                      if(wppizza_is_pickup()){
                                      $wppizza_options['openingtimes']['opening_times_standard'][0]['close'] = '20:30';//sun
                                      $wppizza_options['openingtimes']['opening_times_standard'][1]['close'] = '21:00';//mon
                                      $wppizza_options['openingtimes']['opening_times_standard'][2]['close'] = '21:00';//tue
                                      $wppizza_options['openingtimes']['opening_times_standard'][3]['close'] = '21:00';//wed
                                      $wppizza_options['openingtimes']['opening_times_standard'][4]['close'] = '21:00';//thu
                                      $wppizza_options['openingtimes']['opening_times_standard'][5]['close'] = '21:00';//fri
                                      $wppizza_options['openingtimes']['opening_times_standard'][6]['close'] = '21:00';//sat
                                      }	
                                      return $wppizza_options;
                                      }
                                      

                                      not tested as such but should work

                                      in reply to: Make the font of the order bigger #34879
                                      Olly
                                      Admin & Mod

                                        wppizza->templates

                                        in reply to: The Order Form Setting #34821
                                        Olly
                                        Admin & Mod

                                          because you must also enable them in wppizza->templates

                                          in reply to: PHP 7.0 #34775
                                          Olly
                                          Admin & Mod

                                            your problem is here :

                                            PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding()

                                            you must enable/install mbstring in your php (and unless you updated from a v2.x version of wppizza, or you moved things to a new host as it is, or you upgraded php without also enabling the same php extensions that were enabled in the previous php version (which seems to be the case here from what i can see) , you really should have received an error/warning to that effect)

                                            you should ask you host to enable/install it

                                          Viewing 20 posts - 1,361 through 1,380 (of 4,454 total)