Olly

Forum Replies Created

Viewing 20 posts - 1,121 through 1,140 (of 4,446 total)
  • Author
    Posts
  • in reply to: Problem with google maps address dropdown #39002
    Olly
    Admin & Mod

      >Were you using your desktop to reproduce issue? Seems like there’s no problem on mobile but desktop browsers are still not working.

      yes, i did use a desktop …. without issues

      in reply to: Goodcom printer with ver3.7 #38999
      Olly
      Admin & Mod

        a) post_theme_setup is not hooked into / called by *ANY* wppizza plugin
        b) you are using wppizza_on_order_execute v2 coding with v3 of wppizza

        https://docs.wp-pizza.com/developers/?section=action-wppizza_on_order_execute

        in fact i am even surprised that your coding works at all – i would suggest – for starters you get rid of

        
        $order = new WPPIZZA_ORDER();
        $order = $order->session_formatted();

        as you are overwriting the whole purpose of having this as parameter in the hook in the first place

        furthermore
        add_action( ‘wppizza_on_order_execute’, ‘print_order’, 1);
        should be
        add_action( ‘wppizza_on_order_execute’, ‘print_order’, 1, 3);

        if you want to access all 3 parameters

        please refer to the wordpress codex regarding priorities and (number of) parameters of filters/action hooks

        in reply to: Problem with google maps address dropdown #38944
        Olly
        Admin & Mod

          Hi

          I will take the liberty to copy the essence of the issue here publicly so if anyone else comes across this topic it is somewhat easier to follow
          —quote—
          You can try typing in this address.
          “122 Marin Pl”, then select the address from the google dropdown. In this case it would show the error.
          If you try typing “122 Marin Pl, Woodland”, then everything is fine. FYI, Woodland is the name of the city.
          ————

          essentially , this – usually – has to do with how google returns addresses from the input dropdown
          although you see whole address lines in the input box (none, one or multiple)
          addresses are being split into – among other parts – housenumber, streetname, locality , zipcode etc
          if for the selected address google does not return the housenumber part (as is the case with some addresses) the system says “ambiguous” as it is being made mandatory that a housenumber of some sort exists , else one would never know where exactly an order should be delivered to.

          regarding your particular case however , i cannot reproduce what you are describing.
          when i type in “122 Marin Pl” and select from the dropdown i do not get any error at all and it works just fine from what i can see

          In fact, selecting from the dropdown would be the most reliable way of selecting an address and your place holder that states “Input your address. Please don’t select from the dropdown” would seem to me to pretty much defeat the point of using this whole thing in the first place.

          of course, if google offers an address in the dropdown this is *outside* your set delivery area, then – naturally – selecting this *does* throw a “outside delivery area.. etc ” notice

          I will also play with a couple of things here on my install locally with your addresses . Maybe i can force some problems somehow , but at the moment i cannot really see too much of an issue other than what i mentioned above regarding housenumbers etc generally

          PS: I did also notice that your pages are minified, if not also cached. perhaps you have still something in your borowser cache that makes things throw erorrs you end ? When plygin around on your site I am also getting a ton of google maps js errors in the console (although as mentioned , the address selection works just fine for me)

          have you tried – at least temporarily – to remove all caching and minification ?

          in reply to: Additives with letters now possible? #38899
          Olly
          Admin & Mod

            ok

            in reply to: Additives with letters now possible? #38872
            Olly
            Admin & Mod

              2.15 is about 3 years old now !
              letters etc as additives numbering was added about a year and a half ago (since v2.16.11.22 )

              >is there a solution for letters in our Version?
              no.

              in reply to: Overwrite items and categories #38865
              Olly
              Admin & Mod

                there isn’t really any provision for that in the plugin at the moment (other than skipping the installation of default items and categories entirely – see install constants here : https://docs.wp-pizza.com/developers/?section=wppizza_install_constants)

                but i’ll make a note of that idea and perhaps add a couple of filters in the next update that would allow you to overwrite the default items/categories etc)

                in reply to: Can’t get the Customer Feature to show #38840
                Olly
                Admin & Mod

                  that’s is a completely different issue and my guess is you simply did not enable any gateway
                  no gateway-> no order button (as you wont be able to order anything if you have no payment method to choose from in the first place)

                  in reply to: Can’t get the Customer Feature to show #38838
                  Olly
                  Admin & Mod

                    >How do I go about changing that?
                    you don’t . as that’s automatic and will always be “on” so to speak as an email must be set to be able to register and receive your passwords etc (maybe one could relabel it to “auto” one day or something)

                    in reply to: Can’t get the Customer Feature to show #38836
                    Olly
                    Admin & Mod
                      in reply to: Order History Report #38825
                      Olly
                      Admin & Mod

                        that’s what wppizza -> reports is for

                        in reply to: Half and Half Query #38725
                        Olly
                        Admin & Mod

                          sorry, but there’s no provision for this sort of thing
                          as i remember that this has once cropped up in the (distant) past, i might add such an option at some point , but cannot give you any ETA as to when (or even if) this will be added

                          in reply to: Delivery Price per Category #38724
                          Olly
                          Admin & Mod

                            you could probably use this one

                            add_filter('wppizza_fltr_delivery_charges', 'my_function', 10, 2);
                            function my_function($delivery_charges, $items){
                            /* do your thing here based on $items */
                            return $delivery_charges;
                            }
                            
                            in reply to: Different Delivery/ pickup opening times #38666
                            Olly
                            Admin & Mod

                              >Thanks Olly I got it sorted.
                              good stuff

                              i’ll have a look if there’s something that could be done to dynamically change the “opening times above the cart” too somehow at som point perhaps (though not very hopeful as that’s quite a static thing)

                              to be honest you are probably better off not to display those in the widget and simply write something in freeform text somewhere regarding pickup and delivery opening times

                              in reply to: Gird layout is not working #38657
                              Olly
                              Admin & Mod

                                only your host/server admin will be able to tell you why it throws a 403
                                what i can tell you is this though

                                the wppizza.grid.css.php dynamically generates the css as per your settings and has a content type of

                                header(“Content-Type: text/css”);

                                it *might* be the case that due to the fact it’s a php file but with a text/css header your server throws the 403
                                it *might* also be the case that dues to the above your file permissions for this file have to be different

                                but again, only your server admin will be able to track down (by looking at log files etc) why exactly the issue exists

                                in reply to: Need to add the Payment type in email Subject Line #38642
                                Olly
                                Admin & Mod

                                  apologies, my fault i think (i didnt test this and only did it from memory)

                                  i believe the

                                  
                                  $subject['prefix'] .= ' '.$order['initiator'];
                                  

                                  in the first example (now corrected) should actually be

                                  
                                  $subject['prefix'] .= ' '.$order->initiator;
                                  
                                  in reply to: Need to add the Payment type in email Subject Line #38635
                                  Olly
                                  Admin & Mod

                                    in fact (and then I promise I’ll shut up :) ) actions/filter hooks exist precisely for the reason that you do not have to touch core files but can extend/change a/some functionality of a plugin/theme/wordpress

                                    in reply to: Need to add the Payment type in email Subject Line #38634
                                    Olly
                                    Admin & Mod

                                      PS: never EVER edit core files (of ANY plugin, theme or indeed core wordpress files)
                                      (with – very very – few exceptions that is.)

                                      in reply to: Need to add the Payment type in email Subject Line #38633
                                      Olly
                                      Admin & Mod

                                        NO
                                        you MUST learn about wordpress filters and actions and how they work
                                        https://docs.wp-pizza.com/developers/?section=filters-actions-functions

                                        in reply to: Need to add the Payment type in email Subject Line #38631
                                        Olly
                                        Admin & Mod

                                          as of WPPizza v3.6.6 – and earlier – you can do this

                                          
                                          add_filter('wppizza_filter_email_subject', 'prefix_filter_email_subject', 10 , 2);
                                          function prefix_filter_email_subject($subject, $order){
                                          
                                          	/* 
                                          	$subject is an array made up of 
                                          	$subject['prefix'] - typically contains blogname followed by items added to subject line in wppizza->order form 
                                          	$subject['main'] - typically contains "your order" localization string (wppizza->localization)
                                          	$subject['suffix'] - typically contains date of order according to date/time format set in WP->settings
                                          	*/
                                          	
                                          	/* example: adding the "initiator" (i.e payment gateway ident) after the prefix - typically "COD" or "STRIPE" etc, tweak as required, perhaps use some conditionals to change the label to something else if "COD" etc etc */
                                          	
                                          	$subject['prefix'] .= ' '.$order -> initiator;
                                          	
                                          
                                          	return $subject;
                                          }
                                          

                                          the next / later version will have an additional parameter in the filter that has the order details already formatted

                                          
                                          add_filter('wppizza_filter_email_subject', 'prefix_filter_email_subject', 10 , 3);
                                          function prefix_filter_email_subject($subject, $order, $order_formatted){
                                          
                                          	/* 
                                          	$subject is an array made up of 
                                          	$subject['prefix'] - typically contains blogname followed by items added to subject line in wppizza->order form 
                                          	$subject['main'] - typically contains "your order" localization string (wppizza->localization)
                                          	$subject['suffix'] - typically contains date of order according to date/time format set in WP->settings
                                          	*/
                                          	
                                          	/* example: adding the label of a gateway as set in wppizza->gateways after the prefix , tweak as required*/	
                                          	$subject['prefix'] .= ' '.$order_formatted['ordervars']['payment_type']['value_formatted'];
                                          	
                                          	/* example2: adding the paymet method (i.e typically simply  "Cash" or "Credit Card" ) , tweak as required*/	
                                          	$subject['prefix'] .= ' '.$order_formatted['ordervars']['payment_method']['value_formatted'];
                                          	
                                          	/* see $order_formatted for all available parameters */
                                          
                                          	return $subject;
                                          }
                                          

                                          in both cases the $subject array returned will be imploded with a space between each key

                                          in reply to: Different Delivery/ pickup opening times #38616
                                          Olly
                                          Admin & Mod

                                            without a link to your site and/or seeing the exact code you used , i cannnot comment really

                                          Viewing 20 posts - 1,121 through 1,140 (of 4,446 total)