Olly

Forum Replies Created

Viewing 20 posts - 4,081 through 4,100 (of 4,447 total)
  • Author
    Posts
  • in reply to: show all items from all categories in one page #5475
    Olly
    Admin & Mod

      in v2.11.2 you now have a number of additional shortcodes to play with

      see here: https://wordpress.org/plugins/wppizza/faq/ – > what are the available shortcodes

      i have also added a bunch of classes and id’s to the article and header elements.
      i.e an article has something like this “wppizza-article-special-offers-16”, where the last integer is the category id , whereas the bit before the id and after wppizza-article- bit is the category slug (so in this case “special-offers”). you’ll probably get the rest from here

      one note though: as people might have customised their css using direct selectors somewhere, i cannot hardcode a wrapper div around this , however, there are a couple of filters you can use to add this like so (add the below to your themes functions.php:

      
      /***************
      	wrap loop in div
      	with category id added to classname
      ************/
      add_action('wppizza_loop_outside_start', 'le879_wrap_loop_start',10,4);
      function le879_wrap_loop_start( $the_query, $options,  $termSlug, $categoryId) {
      	if($the_query->found_posts>0){/*only add div if >0 posts*/
      		print"<div class='some-prefix-".$categoryId."'>";/*or use the termslug or whatever*/
      	}
      }
      add_action('wppizza_loop_outside_end', 'le879_wrap_loop_end',10,1);
      function le879_wrap_loop_end($the_query) {
      	if($the_query->found_posts>0){/*only add div if >0 posts*/
      		print"</div>";
      	}
      }
      

      i figure you can work it out from here, but if you have questions just shout

      in reply to: show all items from all categories in one page #5473
      Olly
      Admin & Mod

        just an update.
        haven’t forgotten. just came across a couple of other things that would benefit from being looked at.

        another couple of days.
        (actually making this work is easy, coding it so i don’t break possible customisations of this is the bit that needs to be considered/checked)

        in reply to: All Products Are Displaying On Home Page #5472
        Olly
        Admin & Mod

          >Do you know why this is happening?

          can’t even begin to guess without a link….

          in reply to: How can i change the order of opening hours? #5445
          Olly
          Admin & Mod

            hi,

            that opening times widget is really only a simple helper. there are so many different ways to display opening times, that I don’t think I will spend any time to account for all those option programmatically (not anytime soon anyway).

            So if you want to display your opening hours in a specific way other than how they would be displayed with that widget, you’ll have to just write and display them somewhere as you need them, sorry.

            PS: I might have a look into at least account for the start of the week as set in the general wp settings, but that’s not going to be very high on the agenda at the moment

            Olly
            Admin & Mod

              >OR a textfield in Ingredients Window

              already part of that extension….(just select –add textbox- from the dropdown in custom groups)

              in reply to: show all items from all categories in one page #5420
              Olly
              Admin & Mod

                no worries.
                will be fun (and probably useful to others too)
                might aven be able to do this by tomorrow (unless unforeseen things crop up), but allow me a few days

                i’ll keep you posted (there might be a couple of things you might have to be aware of…will let you know)

                in reply to: show all items from all categories in one page #5418
                Olly
                Admin & Mod

                  although you could mess around with the arguments in the ‘wppizza_filter_loop’ filter, it won’t loop over that page to show you all the headers (i.e. category names) all it would/could do is to show *all* items on one page. so this will only partially be helpful.
                  (essentially you’d be changing the query , but that doesn’t affect the header)

                  easiest thing to do – and i wanted to do that for a while anyway but never got round to it – is for me to add the possibility of a shortcode that allows all categories to be displayed , so you dont have to think about it again. might take a couple of days though, depending on what else crops up.

                  while I’m at it, I might as well also add a class to the headers and articles that references the selected category – probably by id as the navigation has this already as id’s – which should help you in the second scenario when you need to show/hide things

                  although the navigation widget/shortcode was only meant to be used if you use templates, it should work in your scenario too…..(with a bit of creative js, showing/hiding things depending on class/id)

                  in reply to: show all items from all categories in one page #5416
                  Olly
                  Admin & Mod

                    >there is some filter or loop to change that?
                    I might be wrong of course, but it sounds to me like you are using option 1 here
                    https://wordpress.org/plugins/wppizza/installation/
                    when you might want to consider option 2 perhaps (although this in turn might not suit your scenario. dunno . all depends on how you want to put things together)

                    having said that – and thinking out loud for a bit – i suppose i could add/amend the shortcode attributes to automatically show all categories which is actually not a bad idea to start off with really to have that option….

                    >re2:

                    you will *always* need a parent of some sort (assuming that i understand you correctly)
                    this is not down to the plugin, but down to wordpress
                    again, depending on how it’s setup:

                    the parent can be whatever you like though.

                    so this will work:

                    http://www.domain.com/somepagenameslug/pizzas
                    http://www.domain.com/somepagenameslug/pasta
                    etc

                    this:
                    http://www.domain.com/pizzas
                    http://www.domain.com/pasta
                    etc
                    WILL ONLY WORK IF you create those pages (i.e pizza and pasta) and then put the relevant shortcode on it
                    (of course in this case you will have to add new pages whenever you create a new category, so it presumably is not an option for you and i’m just saying this here for completeness sake)

                    i don’t understand the following though (I’m probably missing something):
                    >to be only #cat name..
                    the category slug IS the cat name…(unless of course you changed the slug), no ?

                    in reply to: show all items from all categories in one page #5414
                    Olly
                    Admin & Mod

                      >1 how to print all menu items…

                      just put multiple shortcodes on the page

                      >2. how to use categories navigation without reloading the page?

                      you’ll need to write some script that does that

                      alternatively, put all the shortcodes on their own distinct pages and use/find a theme that loads all pages in one go and then just shows/hides whenever the appropriate link is clicked.
                      i know there are some / have seen some , but off the top off my head i don’t know which one

                      in reply to: How to make items fonts smaller #5408
                      Olly
                      Admin & Mod

                        generally speaking, your theme controls the size of the item title (on the h2 tag)

                        practically speaking, you could override this on the item titles particularly with plain css declarations.i.e something like

                        .wppizza-article-title{/*put your desired font size here*/}

                        in reply to: Emails not showing up from paypal gateway settings #5387
                        Olly
                        Admin & Mod
                          in reply to: Shopping Cart conflicts with Captain Hours plugin #5381
                          Olly
                          Admin & Mod

                            on top of that i just noticed, when uninstalling it leaves all it’s junk in the database

                            in reply to: Shopping Cart conflicts with Captain Hours plugin #5379
                            Olly
                            Admin & Mod

                              that Captain Hour plugin decided that it’s a good idea to change the server/php timezone settings dynamically (and does not reset them when it’s done with whatever it is it’s doing)

                              i cannot even begin to tell you how bad an idea this is…..

                              that’s something they have to fix. got nothing to do with me

                              in reply to: Shopping Cart conflicts with Captain Hours plugin #5377
                              Olly
                              Admin & Mod

                                as it’s a premium plugin i can’t check this, but feel free to send a copy of it to dev[at]wp-pizza.com and i’ll check

                                first thing to check though.
                                did you set your timezones correctly ?

                                in reply to: Email problems on orders #5356
                                Olly
                                Admin & Mod

                                  >Why would he not get a few and I am getting a copy of them all?

                                  very good point. you will have to speak to whoever deals with your emails and see what delivery reports/logs say etc…
                                  maybe some got junked for some reason ?

                                  really nothing i can do my end I would have thought…..

                                  in reply to: Any user manual or user guide? #5347
                                  Olly
                                  Admin & Mod

                                    right then , as of v4.5 you can now do this (might need some tweaking depending what exactly you need and how exactly you want this setup, but it should give you the idea)

                                    a bunch of ingredients

                                    custom group 1

                                    custom group 2

                                    enabled in item

                                    outcome (go to breakfast example on that page)

                                    in reply to: Customize sort order of ingredients #5337
                                    Olly
                                    Admin & Mod


                                      please note – as of v4.5+ :

                                      although this filter is still part of the plugin/extension (in case you want to do something really funky) if you want to custom sort the order of ingredients the way you like, you can now just drag and drop to get the order you desire….

                                      in reply to: Demo site "Make Your Own Pizza" item #5295
                                      Olly
                                      Admin & Mod

                                        there you go

                                        a) a bunch of ingredients
                                        ingredients

                                        b) custom group 1,2 and 3
                                        group 1
                                        group 2
                                        group 3

                                        c) outcome
                                        https://support.wp-pizza.com/twentytwelve/ -> make your own pizza

                                        in reply to: Limit additional info in mail #5272
                                        Olly
                                        Admin & Mod

                                          >Thanks for looking into this.

                                          no problem, was kind of fun

                                          in reply to: Limit additional info in mail #5269
                                          Olly
                                          Admin & Mod

                                            and if you have way too much time on your hands, you could,
                                            with some css, even change the + to a – as those symbols are actually css controlled and all have their distinct id’s on the li wrapper

                                          Viewing 20 posts - 4,081 through 4,100 (of 4,447 total)