Olly

Forum Replies Created

Viewing 20 posts - 1,221 through 1,240 (of 4,430 total)
  • Author
    Posts
  • in reply to: Remove Ingredients #37533
    Olly
    Admin & Mod

      really depends how it’s setup in the first place
      if you have something (in this case Onions) preselected, the customer can just de-select it
      if it is only in your description that an item has onions, then of course th eplugin will not know anything about it
      however, you could simply add a “No Onion” topping so to speak a customer can then select (you could also set negative prices
      there if you wanted!)

      Naturally, the customer can of course also write “no onions” into a textbox

      in reply to: Postcode plugin popup only with menu click #37470
      Olly
      Admin & Mod

        ok, glad we got it sorted out

        in reply to: Postcode plugin popup only with menu click #37466
        Olly
        Admin & Mod

          > but now I have just activated.
          and i dont see any popup anymore….

          …you must define a homepage of some sort in wordpress

          in reply to: Postcode plugin popup only with menu click #37463
          Olly
          Admin & Mod

            why is your homepage (http://www.pizzeria-insel.ch) different to clicking on home (https://pizzeria-insel.ch/home/) ?

            https://pizzeria-insel.ch/ behaves (looks) more like a 404….. ?

            something looks somewhat funny here (just an initial observation to find out what’s going on to start off with)

            in reply to: Postcode plugin popup only with menu click #37461
            Olly
            Admin & Mod

              i cannot comment without a link to the site in question

              in reply to: Anyone else got cloud print problems? #37450
              Olly
              Admin & Mod

                PS: with all this GDPR going on , you might have to re-request/re-setup authorization for cloudprint as per directions (though it still works here as it always did)

                in reply to: Anyone else got cloud print problems? #37449
                Olly
                Admin & Mod

                  have you checked the wppizza/logs directory for any error logs in there (or indeed your debug.log provided you enabled debug)

                  in reply to: multi language webpage & WP-Pizza #37349
                  Olly
                  Admin & Mod

                    polylang breaks things
                    https://docs.wp-pizza.com/getting-started/?section=known-incompatabilities

                    wppizza is checked with WPML , so I would recommend that, but other translation plugins (other than polylang) might work too

                    in reply to: Datepicker issue #37182
                    Olly
                    Admin & Mod

                      in fact, it might even work by simply dequeueing the jquery-ui-[selected_style]-css and rerequeing it with a lower priority so it gets loaded before any of your other stylesheets so those (i.e your datepicker) simply overwrite the set styles
                      without having to check for post_id’s and whatnot

                      mileage will vary. really depends on what the other styles do

                      in reply to: Datepicker issue #37181
                      Olly
                      Admin & Mod

                        i dont know in how many other ways i can say this:
                        the spinner (and all other jquery ui elements’) css is coming directly from jquery ui / themeroller and not from the wppizza plugin (hence you will see something like //ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.min.css) in your source
                        wppizza only “enqueues” it if selected

                        if you want to add only the spinner css have to grab it from there and add/include it (but i believe we’ve been here before. the spinner css in tons of lines of css so finding and getting all the ones you need is – at bets – tedious)

                        i would suggest you simply look into dequeueing it on the relevant pages (as mentioned )

                        PS: of course you will change/break customised css if you change priorities of the themes’ stylesheet without accounting for it elsewhere.

                        in reply to: Delivery Charge on Specific Items #37164
                        Olly
                        Admin & Mod

                          >On the settings page
                          I assume you are referring to the *order* settings page

                          >Can each menu item specify whether a delivery charge will be applied or not?
                          not natively in the plugin, however, there is the following filter you could use to substract the delivery charge if a particular item (let’s say with id 5) is in the cart
                          I also assume you are using “Delivery Charges per item” in the settings here

                          So, something like this (not tested, mileage will vary, but should give you an idea):

                          
                          add_filter('wppizza_fltr_delivery_charges', 'my_prefix_delivery_charges_filter', 10, 3);
                          function my_prefix_delivery_charges_filter($delivery_charges, $cart_items, $general_parameters){
                          	global $wppizza_options;
                          	/* current set delivery charges per item */
                          	$dcpi = $wppizza_options['order_settings']['delivery_charge_per_item'];
                          	
                          	$reduce_delivery_charges = 0;
                          	foreach($cart_items as $items){
                          		foreach($items as $item){
                          			if($item['post_id'] == 5 ){
                          				$reduce_delivery_charges += $dcpi;	
                          			}
                          		}
                          	}
                          
                          	/* substract */
                          	$delivery_charges = $delivery_charges-$reduce_delivery_charges;
                          
                          return $delivery_charges;	
                          }
                          
                          
                          in reply to: Datepicker issue #37097
                          Olly
                          Admin & Mod

                            i’m simply not going to add the overhead of checking every single page or sidebar on every single page request for the possibility of a page haveing wppizza code/shortcodes on them , for the odd theme here or there (hence such an option will never be added to the plugin)
                            but you can do this for your particular thing as mentioned without having to cause this overhead as you know what your pages are

                            in reply to: Datepicker issue #37096
                            Olly
                            Admin & Mod

                              of course dequeueing things (or similar) on pages that – one day perhaps – have datepickers and spinners on them will break things

                              in reply to: Datepicker issue #37095
                              Olly
                              Admin & Mod

                                there are many ways to do that .
                                the one outlined above
                                or dequeueing the ui-css on the pages that have the datepicker on them
                                or filtering the parameter (wppizza[order_settings][order_page_quantity_change_style]) to be empty https://docs.wp-pizza.com/developers/?section=filter-wppizza_filter_options on those pages

                                really up to your imagination

                                in reply to: Datepicker issue #37093
                                Olly
                                Admin & Mod

                                  sure, if you want to style ui-elements with your own css instead of taking advantage of the themeroller css options, you’ll spend a lot of time doing this and – in my book – is a complete waste of time as not only are you trying to re-invent the wheel but also have to know each and every class etc etc that ui-elements use whereas if you use what exists you can sinply forget about all of that

                                  you dont even have to know what the classes are and don’t have to ever worry about updating anything when versions or whatnot change.
                                  For example, currently wordpress uses 1.11. One day wordpress will probably be using 1.12 or higher. If you use your own css, you’ll have to maintain it.
                                  Do you really want to waste your time checking for this every time there might be an update to something ?

                                  in reply to: Datepicker issue #37092
                                  Olly
                                  Admin & Mod

                                    how is this complicated ?
                                    you roll your theme, download it and include/enqueue it (you can probably even use some priority value to include it before the styles you already have, so your current styles would override the newly added ones if the same classes are being used )
                                    or – as mentioned several times now – simply choose from one of the default themes

                                    that’s about 2 lines of code

                                    with the added advantage that if you ever add another jquery-ui-element (other than your current datepicker(s) and the spinner) they are also already styled .

                                    in reply to: Datepicker issue #37084
                                    Olly
                                    Admin & Mod

                                      you already know this from what i can make out…?!
                                      http://jqueryui.com/download/#!version=1.11.4

                                      in reply to: Datepicker issue #37074
                                      Olly
                                      Admin & Mod

                                        >So (as a result) adding another instance to style the spinner (only) will be complicated code wise.
                                        why ? it’s just some style and has no bearing on the js.
                                        (unless you force the ui-js to be added again too, for no reasons i can see)

                                        in reply to: Datepicker issue #37073
                                        Olly
                                        Admin & Mod

                                          >switching the option off only disables the style and not the JS
                                          that is correct. there is an awful lot of functionality attached to this spinner ui element which would not work if the js is not loaded

                                          in reply to: Which printer do everyone use? #37052
                                          Olly
                                          Admin & Mod

                                            thanks for sharing your experiences here. I’m sure this will help some others too at some point

                                            Olly

                                          Viewing 20 posts - 1,221 through 1,240 (of 4,430 total)