Olly

Forum Replies Created

Viewing 20 posts - 961 through 980 (of 4,430 total)
  • Author
    Posts
  • in reply to: Increasing Font Size In Menu Item #41926
    Olly
    Admin & Mod

      that’s typically down to some broken/invalid css before that stops any declarations after being applied

      in reply to: order_details in DB – Change format #41904
      Olly
      Admin & Mod

        a quick – working – example (as mentioned, mileage may vary, and the caveat regarding function name remains)

        
        /* get orders */
        $orders = wppizza_get_orders();
        	
        /* get template */
        $template_type = 'print';
        $template_id = 0;
        
        /* parameters of template print template id 0 */
        $template_parameters = get_option(WPPIZZA_SLUG.'_templates_'.$template_type);
        $template_parameters = $template_parameters[$template_id];
        
        /* get markup for each order */
        foreach($orders['orders'] as $order_formatted){
        	$order_for_template = array();
        	$order_for_template['sections'] = $order_formatted;
        	$markup = WPPIZZA() -> templates_email_print -> get_template_email_html_sections_markup($order_for_template, $template_parameters, $template_type, $template_id);	
        }
        
        
        in reply to: order_details in DB – Change format #41903
        Olly
        Admin & Mod

          i would strongly suggest you start here in that case
          https://docs.wp-pizza.com/developers/?section=function-wppizza_get_orders

          get the template parameters (in this case print from the print templates id=0 and assuming it’s set to be using html format for your purpose)

          
          	$template_type = 'print';
          	$template_id = 0;
          
          	/* parameters of template print template id 0 */
          	$template_parameters = get_option(WPPIZZA_SLUG.'_templates_'.$template_type);
          	$template_parameters = $template_parameters[$template_id];
          
          	/* 
          		get the html markup  
          		$order formatted will be the order(s) you get from the wppizza_get_orders() functions
          		so the below should be in a loop
          	*/
          $markup = WPPIZZA() -> templates_email_print -> get_template_email_html_sections_markup($order_formatted, $template_parameters, $template_type, $template_id);
          
          

          mileage may vary, and not tested as such, but something along these lines.

          the next version of WPpizza will probably have a global wrapper function that replaces the WPPIZZA() -> templates_email_print -> get_template_email_html_sections_markup with something that is easier to use (and i would strongly recommend to use it once it’s implemented as the get_template_email_html_sections_markup referred to above *might( well change at some point in the future as it’s really only an internal function, but I’m just mentioning it here. just do not rely on it )

          in reply to: order_details in DB – Change format #41901
          Olly
          Admin & Mod

            sorry, but only plaintext will be stored in these fields
            I dont actually even understand why html would be useful there I must admit

            in reply to: ZIP/Postcode area district #41793
            Olly
            Admin & Mod

              you’re welcome. thanks for letting me know about the issue

              >I See you also fixed the Bug…
              yup

              in reply to: ZIP/Postcode area district #41778
              Olly
              Admin & Mod

                Just for your info: it’s an issue of how javascript handles that character when uppercasing/capitalising it , not the plugin as such.

                in reply to: ZIP/Postcode area district #41777
                Olly
                Admin & Mod

                  ok, as of v4.0.22 of the postcode plugin, the “ß” character now gets automatically converted to ‘ss’ when saving and using the “autocomplete” / “Show as Textbox instead of dropdown ?” option.

                  so, update the plugin and save your “streets” once.
                  I would think this all works then

                  in reply to: ZIP/Postcode area district #41776
                  Olly
                  Admin & Mod

                    there could be more issues after that’s fixed of course , but this is definitely one of them (and perhaps the only one , we’ll see)

                    in reply to: ZIP/Postcode area district #41775
                    Olly
                    Admin & Mod

                      So, just to keep you updated, the problem is the “ß” character (ä, ö, ü are fine). as it gets converted to “ss” on the frontend/autocomplete
                      as that does not match the original entry there are no matches between what’s entered in the backend and selected in the frontend so it will never allow selection

                      so at least we know now where exactly the problem is. i just have to find the place now where this conversion happens in the chain of events to be able to fix it

                      again, i’ll keep you updated when i know more

                      in reply to: ZIP/Postcode area district #41763
                      Olly
                      Admin & Mod
                        This reply has been marked as private.
                        in reply to: ZIP/Postcode area district #41742
                        Olly
                        Admin & Mod

                          Ok, I cannot see anything obvious (but you should nevertheless consider setting your php save path though)

                          the only way i can really find out what the issue may be is if i can take what you have there exactly apart
                          so if that’s acceptable please do the following :
                          install duplicator https://wordpress.org/plugins/duplicator/
                          create a (full) package , then zip up this package and the related install.php and make it available for me to download somewhere so i can have an exact copy of your site here i can investigate without having to touch your install

                          in reply to: ZIP/Postcode area district #41724
                          Olly
                          Admin & Mod

                            can you post the whole output of wppizza-> tools -> system info here please
                            (a simply copy paste, make the reply private if you wish)

                            in reply to: ZIP/Postcode area district #41715
                            Olly
                            Admin & Mod

                              also, to narrow thing down, please turn off all other plugins except wppizza and the postcode plugin

                              in reply to: ZIP/Postcode area district #41714
                              Olly
                              Admin & Mod

                                there’s something else wrong
                                the plugin makes no distinction between edge and chrome (or anything else for that matter)
                                it’s also been developed on chrome .though that’s neither here nor there

                                can you post a screenshot of the plugin settings please ?
                                as you might imagine , it all works just fine here

                                can you also please change this back to autocomplete on your site so i can see whats going on now . thanks

                                (the “Undefined variable: resHour” is immaterial her and for now, and has to do with the preorder plugin and custom opening times, we’ll get to that )

                                in reply to: ZIP/Postcode area district #41686
                                Olly
                                Admin & Mod

                                  PS: on further investigation, that conflict does not exist if you turn on wppizza->setings->”I am using a caching plugin”
                                  (which you want to turn on in any event if you are planning to use a caching plugin)

                                  but it needs fixing nevertheless

                                  just for your info

                                  in reply to: ZIP/Postcode area district #41685
                                  Olly
                                  Admin & Mod

                                    On a different note: I noticed that the preorder plugin has a conflict with the cross sales plugin and outputs the “we are closed at the moment etc ” message in the cross sells plugin too – it doesnt belong there of course. I will fix that ASAP

                                    in reply to: ZIP/Postcode area district #41684
                                    Olly
                                    Admin & Mod

                                      in fact i would strongly suggest that you do not use any caching plugin until you have finished doing what you are doing or you will forever ask your self why any changes you do have no effect

                                      in reply to: ZIP/Postcode area district #41683
                                      Olly
                                      Admin & Mod

                                        also you really need to read this if you are using caching
                                        https://docs.wp-pizza.com/faqs/?section=using-a-cache-plugin

                                        in reply to: ZIP/Postcode area district #41682
                                        Olly
                                        Admin & Mod

                                          you should enable debug and check your debug log
                                          https://docs.wp-pizza.com/troubleshooting/

                                          in reply to: ZIP/Postcode area district #41679
                                          Olly
                                          Admin & Mod

                                            PS: in fact, if you experience strange behaviour after changing things, as a first suggestion, I would say clear your browser cache/cookies etc (and purge anything that 3rd party caching plugins may do if you are using any)

                                          Viewing 20 posts - 961 through 980 (of 4,430 total)