Olly

Forum Replies Created

Viewing 20 posts - 3,981 through 4,000 (of 4,432 total)
  • Author
    Posts
  • in reply to: HTML Email editing #6083
    Olly
    Admin & Mod

      just tried this with a gmail account, and a negative text-indent does not work because google – in their infinite wisdom – think they know better……sigh

      looks like i need to do the tr/td filter sooner rather than later .

      you could mess around with some margins/paddings/text colours too mind you….

      then agian , with a bit of luck, i get to that in the next couple of days and do an update (and post a solution here)

      in reply to: HTML Email editing #6082
      Olly
      Admin & Mod

        also, can you perhps send me a screenshot / mockup (to dev[at]wp-pizza.com) how you actually want this to look ? maybe i misunderstood what it is you want to achieve

        > I used the whole filter but it doesn’t hide the text there. Also, the size of it can’t bee 100%?

        in reply to: HTML Email editing #6081
        Olly
        Admin & Mod

          can you show me the whole code you used ?

          in reply to: HTML Email editing #6079
          Olly
          Admin & Mod

            PPS: —- not tested though —–

            some/many email clients will not display remote images (unlike attached/local ones) unless the user specifically allows this .

            as an educated guess, you could however probably go to wppizza->order settings->Email Attachments and attach an image to the email which you could then use as background as above, replacing

            
            url('http://s.w.org/style/images/wp-header-logo.png')
            

            with just

            
            url('attachment-img-name.png')
            

            again, not tested/tried, but I think this should work

            in reply to: HTML Email editing #6078
            Olly
            Admin & Mod

              no problem.

              as i mentioned, i’ll probably add some more things to that template to also be able to filter whole td’s, or tr’s . but it’s not imminent…time being the problem as always….

              in reply to: HTML Email editing #6075
              Olly
              Admin & Mod

                this would work (just tested it) – adds the wordpress logo to the header as background image

                add it to your themes functions.php and edit/adjust as required

                
                add_filter('wppizza_filter_html_email_style', 'my_html_style_filter');
                function my_html_style_filter($htmlEmailStyle) {
                /*set background image in header**/
                $htmlEmailStyle['mailHeaderBackgroundImage']="width:303px;height:53px;background:url('http://s.w.org/style/images/wp-header-logo.png') center center no-repeat transparent;";
                /*if you also want to hide the text there, add this too**/
                $htmlEmailStyle['mailHeaderBackgroundImage'].="text-indent:-9999px;";
                return $htmlEmailStyle;
                }
                

                essentially, you can put a whole bunch of css declarations in there according to your needs (just make sure they are valid)

                hope that helps

                in reply to: HTML Email editing #6071
                Olly
                Admin & Mod

                  yeah i know,
                  it’s not the most intuitive way of editing/filtering (other than actually changing the template directly)

                  must do something about this in the not too distant future.

                  as it stands though, its a matter of using a filter (which i will keep regardless…in the future too… so as to not break things when i get round to make things better so to speak)

                  give me a bit (i guess will be tomorrow now) and i’ll post an example

                  in reply to: Get no mail after order #6062
                  Olly
                  Admin & Mod

                    can your server actually send emails ?
                    secondly, i would suggest you turn on debug by adding this to your wp-config.php

                    
                    define('WP_DEBUG', true);
                    define('WP_DEBUG_LOG', true);
                    define('WP_DEBUG_DISPLAY', false);
                    

                    and check if there’s anything in the wp-content/debug.log

                    also, using phpmailer (i.e 3rd option in mail delivery) might give you more detailed errors

                    in reply to: why you need to load JS if you disable the order option #6022
                    Olly
                    Admin & Mod
                      in reply to: why you need to load JS if you disable the order option #6013
                      Olly
                      Admin & Mod

                        then again, if you are certain you do not need any of this, you can always dequeue scripts

                        in reply to: why you need to load JS if you disable the order option #6012
                        Olly
                        Admin & Mod

                          because other plugins/customisations might depend on it

                          in any case, loading about an extra 35kb is neither here nor there in most WP scenarios (after all, jquery itself is about 100kb at a minimum,)

                          generally speaking though, i’m all for keeping loading of unnecessary external files to a minimum if at all possible

                          in reply to: Preoder – Timetable/ timepicker not showing up #6010
                          Olly
                          Admin & Mod

                            you have a javascript error on that page

                            Uncaught TypeError: Cannot read property ‘offsetWidth’ of null which stops the execution of any other js dead

                            from what i can ascertain, that’s thrown by

                            http://maps.gstatic.com/maps-api-v3/api/js/18/14/main.js
                            which is being called from
                            //maps.googleapis.com/maps/api/js?sensor=false&ver=3.9.2

                            in short though , i hazard a guess the error comes from the script looking for a google map that does not exist on that page

                            so don’t load the script when there’s no map (or of course just put a map on there)

                            if it’s part of the theme you are using in some way, then tell the theme developers to not load the script when there’s no map (assuming my assumptions above are correct)

                            additionally , there seems to be a lot of js minification going on which might – or might not – be the cause of the troubles

                            for starters, if possible in your theme, i would try to turn this minification off and see what happens without it or move the

                            //maps.googleapis.com/maps/api/js?sensor=false&ver=3.9.2

                            script to the very bottom after everything else (so the error gets thrown after everything else had a chance to do it’s thing)

                            in reply to: Business Lunch #5991
                            Olly
                            Admin & Mod

                              the only way to do this sort of thing is with this:
                              https://www.wp-pizza.com/downloads/wppizza-add-ingredients/

                              as an example (use your imagination a bit assuming that “bacon” “cheese” and “eggs” etc are some of the items you want be able to select from)

                              https://www.wp-pizza.com/topic/any-user-manual-or-user-guide/#post-5347

                              see also previous message regarding more examples etc

                              btw, you cannot exclude single selected items from delivery.
                              either you deliver , or you do not

                              >other restaurant owner wants don’t need to hide any menu items because all the items can be selected in the “Business Lunch” deal from 12:00 – 17:00

                              how would that stop anyone ordering the business lunch deal after 17:00 if you do NOT make it un-selectable so to speak ? (unless of course he is closed before 12:00 and after 17:00 anyway)

                              in reply to: Discount in Euro for Self-Picking #5990
                              Olly
                              Admin & Mod

                                ok, i understand now .

                                and you are right , it does not let you do that at the moment.
                                however – as we speak – I am working on something that will let you do this and more

                                might be a couple of weeks or so yet though

                                in reply to: Business Lunch #5983
                                Olly
                                Admin & Mod

                                  just re-read your original question and i think i (partially) misunderstood what you are after.

                                  the timed menu does just that – i.e. it makes menu items available at a given time

                                  you seem to also want to “chain” menu items so to speak, i .e

                                  business lunch ->choose a or b + choose c,d, or e etc

                                  which you could do with the “add ingredients extension” (although it does not allow you to select from already existing menu items, you could define menu items as “ingredients” so to speak)

                                  a lot of examples and general stuff can be found here

                                  https://www.wp-pizza.com/forum/add-ons/extensions/add-ingredients/
                                  https://www.wp-pizza.com/downloads/wppizza-add-ingredients/

                                  and some demos here
                                  https://www.wp-pizza.com/twentytwelve

                                  in reply to: Business Lunch #5979
                                  Olly
                                  Admin & Mod

                                    >in multisite i cant use shortcode with item id because the id will be different on every blog.

                                    how is that a problem ?
                                    presumably every site in your multisite setup is a separate site (otherwise what’s the point of a multisite setup in the first place ?)

                                    >or if you can help me with my sagesten that i have wrote you before it would be great.
                                    assuming “sagesten” is a typo and you meant “suggestion”:

                                    sorry , but no, i am not doing customisations for you . that’s your job.
                                    i have enough to do as is supportings what’s there and – in any case – there are already a ton of codesnippets you can use as a starting point

                                    in reply to: Urgent bug (duplicated items) #5974
                                    Olly
                                    Admin & Mod

                                      furthermore, looking at the link you sent me to your site a while back , i cannot see any duplicates in the source of the page, so I don’t know what your javascript you are referring to is actually supposed to be doing

                                      however, if it works for you than that’s fine by me

                                      in reply to: Urgent bug (duplicated items) #5973
                                      Olly
                                      Admin & Mod

                                        how is your code js ?

                                        in any case, i used a non customised version of your theme and it works fine.
                                        if this really were the case / a problem, i am sure i would have heard from other about this by now…

                                        if someone else reports this too, I shall check again – nobody is perfect – but as it stands i can’t see anything that needs fixing my end

                                        in reply to: Business Lunch #5972
                                        Olly
                                        Admin & Mod

                                          I fail to see why this would not work from what you are describing

                                          – create a menu item with whatever prices / info / description etc
                                          – create a page with a shortcode that only displays that item
                                          – set the timed menu to make this item only available at certain dates/times.

                                          job done

                                          in reply to: Discount in Euro for Self-Picking #5964
                                          Olly
                                          Admin & Mod

                                            i am probably missing something, so can you explain to me the necessity of this ?

                                            a common scenario surely would be this.

                                            – normal price of item a: 5.99
                                            – i want it delivered : add delivery charges of x.xx (or not)
                                            – i pick it up myself at the restaurant -> get x.xx discount (or not)
                                            – i am actually eating at the restaurant -> i ask the waiter for the bill and pay him (without going to a website to do so ) where the waiter can of course also apply a discount if required / offered

                                            must admit , I’m not understanding the requirement (or indeed the question) here, but feel free to elaborate of course

                                          Viewing 20 posts - 3,981 through 4,000 (of 4,432 total)