Add images to ingredients

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #4860
    James Burrell
    Participant

      Great plugin, but a very important question, is it possible to add an image to each ingredient? Our client specifically asked for that.

      #4862
      Olly
      Admin & Mod

        sure.
        every ingredient is wrapped in an li element with the appropriate class (such as class=”wppizza-ingredient-22″ where the 22 refers to whatever ingredient has the id 22)

        just use whatever css declaration you need to display whatever image you want

        #4863
        James Burrell
        Participant

          Hmmm…I noticed that, but since the ingredient id number changes when I have to copy an ingredient set to another group, is there a way to keep the id number the same instead of generating another?

          For example: I’m using this to build an ice cream online store. (One half is located here: http://scoopsdelivers.com/locations/scoops-allendale/) I have it properly set up as so:

          Customer adds to cart > ingredients show up with two different groups (flavors, toppings) > customer adds ingredients > hits add to cart.

          As you can see, each product was set up to its own size group, which in turn had to be set up for each ingredient set to be tied to that specific size group (instead of all of them at once).

          So again, my question is if there is a way to keep a specific ingredient id the same so I can call that class in my css instead of going through each ingredient and declare all of those separate classes even though it’s the same ingredient throughout the entire store? Or is there a way to just simply make an ingredient set be tied to all of the size groups at once?

          If you need me to give you screenshots or such, that’ll be awesome.

          #4864
          Olly
          Admin & Mod

            i dont think i’m with you…

            > is if there is a way to keep a specific ingredient id
            it does stay the same , but of course, if you copy something as essentially a new ingredient it gets it’s own id (as you might rename it at some point )

            furthermore:
            > so I can call that class in my css instead of going through each ingredient and declare all of those separate classes

            not sure why you would need to re-declare classes . surely you can just write this

            
            .wppizza-ingredient-22,.wppizza-ingredient-24{/*my css*}
            

            then again, maybe i’m still misunderstanding the issue …always a possibility of course ?!

            #4865
            James Burrell
            Participant

              No, you got some of what I was looking for, and I figured that with declaring multiple classes at once, but that way would have me search for each ingredient class that it’s set to, which is what I’m trying to avoid since that’ll be repetitive and tedious.

              I’ll start screenshots so you can see what I mean. Mind if I email you those?

              #4866
              Olly
              Admin & Mod

                more importantly (taking the shakes and sundaes here – http://scoopsdelivers.com/locations/scoops-allendale/ – for example )

                having had a quick glance (I might be wrong though) both seem to have the same set of ingredients/toppings and respective prices.

                if that is the case, I must admit i dont even understand why you have the same set of ingredinets/toppings 2x as opposed to reusing the same lot

                (again, that’s just after having a quick look, i might have missed something here of course)

                #4867
                James Burrell
                Participant

                  EXACTLY RIGHT! They have the same set of ingredients and prices. Then again, if you look through all of them, even if it’s only one size or different prices, they have the same set of ingredients PERIOD.

                  The process I got with adding ingredients to a menu item is this:

                  1. Add menu size
                  2. Go to extension, add ingredients for menu size
                  3. Go to custom groups tab, customize label name/type/available/assignment
                  4. Add menu item, set price tier, allow add ingredients to item
                  5. PROFIT

                  To rephrase my question, is there a way I can set ingredients list for all of the menu sizes? Again, every item has the same ingredient (flavor/topping) list, and this process forces me to set it to a specific menu size group which forces me to copy to a new menu size group.

                  #4868
                  Olly
                  Admin & Mod

                    >Mind if I email you those

                    not at all

                    #4869
                    Olly
                    Admin & Mod

                      i’m somewhat understanding the issue i believe.

                      however, there’s something quite strange (superflous) going on from what i can tell

                      staying om the same page (http://scoopsdelivers.com/locations/scoops-allendale/)

                      you have only 2 different price groups / meal sizes

                      a) one size (cookie sundae, cookies, nachos (? nachos with snickers ?)
                      b) small , medium , large (flurries, shakes , sundaes)

                      staying with b) here.
                      the chocolate option has a different id for the flurries, shakes and sundaes respectively .i.e it appears – and from what i can read above – you entered all those toppings 3 times. …..why ?

                      if flurries, shakes and sundaes are all supposed to have the same set of toppings, why are they entered 3 times . any particular reason i’m missing ?

                      having said that – and more particularly in answer to your initial question – every topping as you know has its own id.
                      so if you have 2 groups (“one size” as well as “small,med,large”) than the css will have to be set for those toppings in each group individually (again, because the name might change for example).

                      however, if you only have 2 distinct different groups (as you should have from what i can see – again at least just talking about this page – it really should not be that time-consuming/tedious to add a couple of css declaration.

                      so, in short, you have to set the css per id/class but i think the tediousness you are referring to comes from declaring too many unnecessary meal sizes

                      >but that way would have me search for each ingredient class

                      its just a right click->inspect element (on chrome ) or similar to get that id .no ?

                      #4870
                      James Burrell
                      Participant

                        Ok. That way would only force me to use two price/size groups. That definitely helps, thank you. And yes, that’s how I’m searching for each ingredient class, LoL.

                        I have another location to build as well that, from the looks of it and the number may be higher, has seven different price/size groups to create.

                        Instead of having to get the two sets of ids on the location I linked you, and the possible seven sets of ids on the second location, since they are the same ingredients for all of those price/size groups, can I just create an ingredient set universal to all of the price/size groups?

                        P.S.: Yes, nachos with Snickers. It is a thing. Don’t ask me why LoL.

                        #4871
                        Olly
                        Admin & Mod

                          > can I just create an ingredient set universal to all of the price/size groups

                          no (for various reasons) but that’s exactly what the copy function is for of course….
                          so create one set and just copy the whole lot to the other sizes…

                          you’ll still have the same “tediousness” we talked about earlier regarding css declarations though, but if I were to make this “easier” so to speak , i would take a lot of flexibility away that others might want /need

                          having said that, maybe there is a way to cater for this situation , but it’s not implemented at the moment, and I’d have to think about this for a bit as to how this could possibly be done.

                          Always happy to make things better/easier/faster if possible. so questions and suggestions like these always appreciated

                          #4872
                          James Burrell
                          Participant

                            Yeah, at least if this could be an option to add to all groups without taking away the functions that are there now.

                            I really appreciate the help on this. Still using this plugin to my advantage!

                            #4873
                            Olly
                            Admin & Mod

                              you’re welcome

                              one more – unrelated – thing . as the theme you are using is somewhat responsive, the following might or might not be useful…..just an idea. your call of course

                              https://www.wp-pizza.com/topic/making-the-default-css-responsive/

                            Viewing 13 posts - 1 through 13 (of 13 total)
                            • The topic ‘Add images to ingredients’ is closed to new replies.