Olly

Forum Replies Created

Viewing 20 posts - 1,141 through 1,160 (of 4,446 total)
  • Author
    Posts
  • in reply to: meal size location #38509
    Olly
    Admin & Mod

      Hi

      although you could do this with the filters available
      (https://docs.wp-pizza.com/developers/?section=wppizza-markup-loop-posts-prices-php)
      for your own sanity , i would probably suggest you use/make a copy of the posts.prices.php template as outlined here
      https://docs.wp-pizza.com/developers/?section=modify-templates-readme
      under “EDITING FILES DIRECTLY – ONLY IF FILTERS/ACTIONS CANNOT BE USED”
      and simply moving the relevant elements around

      i.e move

      
      $markup['post_price_'.$key.'_span'] = '<span>' . $price['price'] . '</span>';
      

      AFTER

      
      if(empty($price['no_label'])){
         $markup['post_price_'.$key.'_label'] = '<div class="' . $price['class_size'] . '">' . $price['size'] . '</div>';
      }
      

      instead of where it is now (so just reverse the two locations of those parts of the script)

      not thoroughly tested , but should work i would think

      hope that helps

      in reply to: alternate Orders page. #38474
      Olly
      Admin & Mod

        unless you are having a dedicated site where you know where stuff comes from (perhaps a multisite setup though) it will ALWAYS need some programming to do this sort of thing

        in reply to: Address issue #38470
        Olly
        Admin & Mod

          PS: the behaviour of enter and tabs also depends on how many results there are in the dropdown to start off with, so i would need a specific “order of events” – i.e “enter address abc” hit enter , enter address xyz – hit TAB etc to be able to reproduce this and be able to tell what the issue might be (if any)

          in reply to: Address issue #38469
          Olly
          Admin & Mod

            ok, it turns out , that the google maps api does not always return a street or house name/number for all locations (even if it is typed in to the address box) and the plugin simply says “ambiguous” as for a proper address you will be able to deliver to, you need of course more than just the street number

            I am really not sure if there is anything i will be able to do about this but I will see what i can do.
            maybe in cases where there is no housenumber returned there is a second/different api query that one can run … but at the moment i cannot tell you much more or indeed if this is doable

            (unfortuynately there will always be cases where the maps/distance calculation will simply not work – one of the reasons why that part of the plugin will probably always be marked as experimental/beta)

            in reply to: Google Cloud Print Margin #38443
            Olly
            Admin & Mod

              just to add to this – might help someone somewhere – allow me to also point to this topic
              https://support.wp-pizza.com/topic/question-google-cloudprint/

              ( especially the last few printing options/examples/tests posts)

              in reply to: responsive layout adjustment #38441
              Olly
              Admin & Mod

                if you want it on the same line, just leave the style at “default”
                However, if you do that you might have issues on small screens – but that depends on your theme and the number of prices/sizes you have for each item. hence the very existence of the “responsive” layout

                alternatively, you can also mess around with the “element” attribute of the shortcode (https://docs.wp-pizza.com/shortcodes/?section=by-category) to move bits around and add required css

                in reply to: DIfferent Pick-up opening hours in functions.php #38436
                Olly
                Admin & Mod

                  I’ve deleted my previous replies (only confuses the issue) and updated the documentation here instead

                  https://docs.wp-pizza.com/developers/?section=pickup-opening-times

                  (as there were some parts to it missing that makes this work in different scenarios)

                  in reply to: Address issue #38430
                  Olly
                  Admin & Mod

                    Hi
                    sorry to take so long

                    unfortunately , where I am this week , there is only very sporadic and slow internet so the whole connecting to google maps etc is timing out on me all the time. this will be better when I get out from here at the weekend. i’ll have a look at it then
                    (just testing things on a localhost will simply not work in this case unfortunately)

                    please bear with me for a few days

                    thanks

                    in reply to: Address issue #38413
                    Olly
                    Admin & Mod

                      Hi
                      I’ll see if I can reproduce this here and will get back to you

                      in reply to: Customizing the customer email confirmation #38397
                      Olly
                      Admin & Mod

                        > add a custom jpg header and change some colors…
                        use the css settings in the templates (that’s what they are there for). i.e background-image for your header and whatever colours you want to set.

                        in reply to: Customizing the customer email confirmation #38385
                        Olly
                        Admin & Mod

                          >but can you tell me which of the (php) files contain the custom email template structure..
                          there is no single php file that does this, this is pretty much all done dynamically by using filters

                          >Also, can I customize the “Thank you for ordering” page..
                          if you thank you mesaeg is too small, then it’s probably your theme’s css that sets this, so you should look there and overwrite as required

                          > in V3 this info appears below the form
                          no, it does not (not bey default anyway)
                          you can use any of the demos here https://demo.wp-pizza.com/ and you will see that it shows the page title, some text you set in localization, and then the order details (if that has not been disabled )

                          Olly
                          Admin & Mod

                            sorry, but I do not know what you are referring to.
                            the wppizza plugin does not have any “search bar”.

                            in reply to: Hook into "Delivery time" and "Preperation time" fields #38249
                            Olly
                            Admin & Mod

                              wppizza_options is a global variable
                              so you could simply use some action hook with the appropriate priority to change things i.e in this case

                              $wppizza_options[‘order_settings’][‘order_pickup_preparation_time’]
                              and
                              $wppizza_options[‘order_settings’][‘order_delivery_time’]
                              alternatively see here https://docs.wp-pizza.com/developers/?section=filter-wppizza_filter_options

                              if you go to localization, you will find – under “Pickup / Delivery”- plenty of strings that use the %s placeholder to use in mail etc templates

                              in reply to: How to change size liters into kilograms #38231
                              Olly
                              Admin & Mod
                                in reply to: Product extra options #38208
                                Olly
                                Admin & Mod

                                  you could simply make a “menu item” (i.e what would typically be a pizza for example) and call it “gutschein” , sell that “gutschein” like you would sell the “pizza” and then send that to the customer…

                                  in reply to: Order from 2 pizzas #38205
                                  Olly
                                  Admin & Mod

                                    that’s quite deliberate.
                                    you should probably use a setting like here instead
                                    http://demo.wp-pizza.com/wppizza-add-ingredients/wp-content/uploads/sites/15/2017/10/cg-simplefor2.png where you set the min and max per group (you *might* need more than one custom group for all your things)

                                    in reply to: Order from 2 pizzas #38202
                                    Olly
                                    Admin & Mod

                                      have a look at the “simple must choose two” here https://demo.wp-pizza.com/wppizza-add-ingredients/our-menu/user/
                                      i would think and/or “SIMPLE MEAL FOR 2 – UPSELL” (or a combination of those, depends on what you need exactly)

                                      in reply to: Relocate position of ingredients in cart table #38200
                                      Olly
                                      Admin & Mod

                                        >it is important that I have the ability to relocate that particular injection.
                                        you could try to change
                                        $markup_item['tr_add_ingredients'] .='<td colspan="'.($colspan).'">';
                                        to
                                        $markup_item['tr_add_ingredients'] .='<td></td><td colspan="'.($colspan-1).'">';
                                        in wppizza-addingredients.php approx line 1684

                                        though that’s at your own risk of course (and i still cannot see how this could not be accomplished with css, but i dont know every little detail of your setup of course)

                                        > I also want to add identifiers to the injected code as outlined above. Examples being “TOPPINGS:” and “SPECIAL REQUESTS:”.
                                        which you can if enable “Display ingredient groups in emails (sort and display ingredients by (custom)groups in emails, thank you page, admin history print)”

                                        >support being minimal,
                                        how is that “minimal” ?
                                        generally support (free plugins or not) is for plugins as they are and not for making them do something they don’t or re-writing them for a particular scenario. that’s not support, that’s customisation.

                                        even so , wherever practical/possible I’ll try to point people in the right direction even if it’s not inbuilt or at least leave some filters action hooks in them (i am also always more then happy to add some filters on request) (and see above of course)

                                        in reply to: Want to change the Size of Liters to Kilograms #38198
                                        Olly
                                        Admin & Mod

                                          what’s stopping you ? it’s just a label, you can name it whatever you want

                                          in reply to: Relocate position of ingredients in cart table #38189
                                          Olly
                                          Admin & Mod

                                            there is no single file as such.
                                            this is all dynamically generated via filters etc and if you were to simply edit rows/colspans/td etc directly you will most likely break things elsewhere sooner or later
                                            honestly, use css to change/tweak layouts. after all, that’s what it’s for

                                          Viewing 20 posts - 1,141 through 1,160 (of 4,446 total)