Olly

Forum Replies Created

Viewing 20 posts - 1,781 through 1,800 (of 4,431 total)
  • Author
    Posts
  • in reply to: Guest "checkout" report. #28083
    Olly
    Admin & Mod

      >The only other issue with this setup is that guest can order multiple times a day and get the same discount. This has happened a few times.

      i know nothing about your setup of course and it’s just an idea, but this one
      https://support.wp-pizza.com/downloads/wppizza-coupons-and-discounts/
      let’s you also specify a “once per customer” discount. however, if someone stays for more than one day and this is to be applied every day, you would have to reset the count every day (i.e re-save the discount or create a new one with the same settings)

      again, just an idea

      in reply to: Guest "checkout" report. #28082
      Olly
      Admin & Mod

        if you have the username/password for every user (i assume you are using this whole shebang somewhat internally ) you could create a order history page (i.e a page with [wppizza type=”orderhistory”] shortcode on it) and get a list of that particulars person orders.

        however, as it stands, there isn’t really any integration of any kind to send this by email in a “click here to email” button sort of way#

        the only thing i can think of is doing something like running the_content filter on that purchase history page along these lines

        
        add_filter( 'the_content', 'my_the_content_filter', 20 );
        function my_the_content_filter( $content ) {
        global $post;
        if($post->ID == x && is_user_logged_in()){//x being the post id of that page
        $user = wp_get_current_user();
        $user_id = $user->ID;
        $user_email = $user->email;//or similar, dont know of the top off my head how to get the email, see codex
        /* run a query on wppizza orders table using wp_user_id = $user_id and save as file somewhere perhaps*/
        
        $content.='add some button that on click sends the file to user ';// 
        }
            return $content;
        }
        
        

        the above is just a very rough idea, i am sure there would be more hoops to jump through to make this work, but should be doable

        in reply to: Adaptive design #28068
        Olly
        Admin & Mod

          you need to use css media queries defining min-width , max-width and override width and clear properties (and perhaps a couple more such as margins )

          in reply to: Don’t get any mail after someone ordered. #28054
          Olly
          Admin & Mod

            >I did debuging but it doesn’t work.
            what exactly do you mean by “I did debuging but it doesn’t work.” ?

            what does your debug log say ? (assuming you followed this https://support.wp-pizza.com/topic/how-to-enable-debug-in-wordpress/ )

            in reply to: Post/Zip code call map popup #28039
            Olly
            Admin & Mod

              or simply try something like this on click and after load

              https://stackoverflow.com/questions/8558226/recenter-a-google-map-after-container-changed-width

              no idea if this works and will most likely need some tweaking but might be a starting point if you really want to do the popup on click with a different type of thickbox….

              in reply to: Post/Zip code call map popup #28038
              Olly
              Admin & Mod

                ok, but what does that have to do with something hijacking the core WP thickbox though ?

                more importantly if you want to use the redirect thing you want to have it opened anyway without having to click on a button first, don’t you ? (which is the default behaviour)

                not sure where the issue is or why the behaviour it already has needs to be modified ?!

                in reply to: Post/Zip code call map popup #28036
                Olly
                Admin & Mod

                  it already opens by itself when used ?!
                  (as you can see here http://pizzadewl2.wpengine.com/online-bestellen/neu-bei-mama/)

                  but – as i said – your non-working site uses something that hijacks the WP thickbox (or is customised that way – i cannot know)

                  in reply to: Post/Zip code call map popup #28033
                  Olly
                  Admin & Mod

                    you are using something that hijacks the normal wp thickbox.
                    you have to re-initialize the map once the container has been opened (check the google codex re maps) or it has no idea what size it needs to be and the width/height is 0 – hence nothing shows

                    you will see what i mean when you open the container/map and simply resize the browser. it will now show up as the container div has a specified/known width / height when it’s opened

                    in reply to: After updating, completed orders wont send emails #28020
                    Olly
                    Admin & Mod

                      those notices will have nothing to do with no emails being sent.
                      your issue is elsewhere (and as you are giving me nothing else to go on i cannot tell you anything else either)

                      in reply to: Times menu causing conflict with Divi theme sub menu #27938
                      Olly
                      Admin & Mod

                        that wont work

                        you are supposed to remove the filter (and you REALLY need to understand how filters and action hooks work if you want to do any kind of customisation in wordpress – there are plenty of tutorials )

                        for the time being and simplicities sake (but be aware of the consequences of editing core files – i.e you will not be able to update the plugin without loosing your changes or having to re-apply them every single time). However i make no guarantees if you choose to do so:

                        in v2x.php of the plugin you will find (approx line 81)

                        
                        add_filter('wp_get_nav_menu_items', array($this,'wppizza_tm_exclude_nav_menu'), null, 3 );/*exclude posts and pages from nav menu (appearance->menus)*/
                        

                        simply delete that line (or comment it out)

                        let me re-iterate though. you are trying to use a program/plugin for something it was not designed for

                        in reply to: Times menu causing conflict with Divi theme sub menu #27935
                        Olly
                        Admin & Mod

                          my guess is you are removing the function, not the filter !
                          if you do that you will get nothing

                          in reply to: Times menu causing conflict with Divi theme sub menu #27930
                          Olly
                          Admin & Mod

                            btw, just to be sure, simply removing the filter on a test install works just fine and simply re-shows (so to speak) the pages/links that were omitted (you do seem to somewhat also have some post categories in your menu for some reason – i would suggest you re-check your Appearance->menu setup)

                            in reply to: Times menu causing conflict with Divi theme sub menu #27929
                            Olly
                            Admin & Mod

                              >pickup and deliver the food to the customer, nothing to do with the actual restaurant.
                              none of my business of course, but I am wondering what the site does if the restaurant in question is closed…..just thinking out loud though.

                              removing that filter does nothing to the menu layout or css as it does not add anything to it in the first place when used. it simple removes items from the list ….

                              looks to me more like your menu hierarchy is not what it should be but that is not anything wppizza or any wppizza plugin influences. (but megamenu will probably)

                              in reply to: Times menu causing conflict with Divi theme sub menu #27926
                              Olly
                              Admin & Mod

                                what shortcode ?
                                i did no say anything about shortcodes..

                                in reply to: Times menu causing conflict with Divi theme sub menu #27920
                                Olly
                                Admin & Mod

                                  first of all i would suggest, not to use a plugin to do something it’s not meant for.
                                  there is even a very good chance that the plugin will be amended – at some point in the not too distant future – so that you won’t even be able to add things to the cart outside the set hours EVEN IF you remove the covering div ! (After all, that’s the point of the exercise)

                                  secondly – although i do not 100% know what the exact requirements for your site are of course – it seems to me you are listing the menues of different restaurants. if that is the case, i sincerely hope you are using a mutlisite setup (if nothing else at least for your own sanity)

                                  if so, you could simply (staying with bud-alleys here for example) create 3 sites for it (breakfast/lunch/dinner) and make the opening times and menues as required (i.e breakfast has breakfast products and breakfast opening times etc )

                                  then you could use the preorder plugin to actually open the shop but people need to choose an appropriate time in the future if it’s closed.

                                  however, if you are trying to be a “middleman” so to speak , the only half way sensible way i can see is simply adding something to the pages (as you have done) or indeed into the title of each menu item

                                  again though, those are just ideas. i know nothing about the requirements or how all these restaurants work there or what the site is supposed to enable/do

                                  you could also remove this filter in the plugin
                                  add_filter('wp_get_nav_menu_items', array($this,'wppizza_tm_exclude_nav_menu'), null, 3 );/*exclude posts and pages from nav menu (appearance->menus)*/

                                  via some remove_filter class

                                  but – as mentioned above – this might not help you in the long run anyway (unless you will never update the plugin )

                                  in reply to: Times menu causing conflict with Divi theme sub menu #27918
                                  Olly
                                  Admin & Mod

                                    pages do not appear in the dropdown menu if there’s nothing on the pages that can be ordered because the time(s)/date(s) set for the items when they are available is outside the current time/date. that’s intentional.

                                    however, you have chosen to not only display the items not available (that’s optional of course – under the options tab of the plugin), but have also overridden the css to actually allow ordering of the item.
                                    that kind of defeats the point of using the plugin.

                                    I guess I could add an option to NOT remove the pages from a menu if they are empty (i.e there’s nothing on there to order) but am somewhat puzzled why you would use the plugin in the first place ?!

                                    perhaps I am missing something ?

                                    PS: Btw, this has nothing to do with or is caused by the theme you are using with the plugin…

                                    in reply to: export for multisite #27856
                                    Olly
                                    Admin & Mod

                                      the only way to do that sensibly is clone your site (i have had good results with this https://en-gb.wordpress.org/plugins/ns-cloner-site-copier/)

                                      as post id’s (menu items), size id’s (meal sizes), categories and ingredient ids are all linked and are not really export/importable on their own

                                      in reply to: Error 403 when saving custom groups on page one #27852
                                      Olly
                                      Admin & Mod

                                        first of all, you need to enable debug and check the debug log
                                        https://support.wp-pizza.com/topic/how-to-enable-debug-in-wordpress/

                                        secondly, a 403 error is a server error you will have to investigate (but the debug.log might help)

                                        Olly
                                        Admin & Mod

                                          >updated and it works.
                                          hooray

                                          >thanks for such a quick implementation of the fix
                                          no problem

                                          >I’ll update the WPML thread too.
                                          thank you

                                          Olly
                                          Admin & Mod

                                            as of wppizza version 2.16.11.24 , i believe this is now fixed and was due to some legacy coding left in the plugin for very old wppizza versions (in case anyone cares reading this :))

                                            had nothing to do with WPML or any other non-wppizza plugins. simple coding error on my behalf

                                            obviously, if there are still issues for some reason, let me know

                                            PS: might take a couple of minutes for that update to show up in your plugins page

                                          Viewing 20 posts - 1,781 through 1,800 (of 4,431 total)