WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Extensions › Add Ingredients › Support › Add images to ingredients
- AuthorPosts
- 29 August, 2014 at 6:04 pm #4860
Great plugin, but a very important question, is it possible to add an image to each ingredient? Our client specifically asked for that.
29 August, 2014 at 6:08 pm #4862sure.
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
29 August, 2014 at 6:24 pm #4863Hmmm…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.
29 August, 2014 at 6:59 pm #4864i 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 classesnot 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 ?!
29 August, 2014 at 7:05 pm #4865No, 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?
29 August, 2014 at 7:08 pm #4866more 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)
29 August, 2014 at 7:16 pm #4867EXACTLY 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:
- Add menu size
- Go to extension, add ingredients for menu size
- Go to custom groups tab, customize label name/type/available/assignment
- Add menu item, set price tier, allow add ingredients to item
- 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.
29 August, 2014 at 7:17 pm #4868>Mind if I email you those
not at all
29 August, 2014 at 7:39 pm #4869i’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 ?
29 August, 2014 at 7:55 pm #4870Ok. 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.
29 August, 2014 at 8:11 pm #4871> 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
29 August, 2014 at 8:15 pm #4872Yeah, 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!
29 August, 2014 at 8:41 pm #4873you’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/
- AuthorPosts
- The topic ‘Add images to ingredients’ is closed to new replies.