only show custom groups ingredients

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Extensions Add Ingredients Support only show custom groups ingredients

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6997
    danielz
    Participant

      Hi olly,

      sorry me again :/
      Is there a way to show only the custom groups for a menu item?
      unfortunately they don’t have a specific css class to target them and hide the others…

      maybe I missed something?
      it would make sense I think to only show ingredients for a dessert, for example, and there is no need for gorgonzola and hot pepper to show up?

      cheers
      daniel

      #6998
      Olly
      Admin & Mod

        >unfortunately they don’t have a specific css class
        there are classes and id’s all over the place, so i don’t know what else you could need to target them

        in any case, for your own sanity, you should probably just create it’s own mealsize for desserts and add dessert ingredients (as opposed to all ingredients for everything i would have thought)

        Alternatively, use an “exclude” custom group for the ingredienst you do not need and assign that one to your desserts

        any of the above will work

        #7000
        danielz
        Participant

          sorry for being unclear. there is no class for custom groups as a general class.
          just classes for each group with added numbers. so it becomes a bit tedious to hide all ingredients and then display:block each of the groups specific number class.
          not so future proof as well, if new custom groups are added, the css has to be updated every time.

          making a meal size can be the answer, but still with 20 custom groups or more it makes it more complicated for users to also create a meal-size for each custom groups.

          I think it is a realistic scenario that you have dishes with specific ingredients which only show up only at that dish.

          just saying…
          I can work with the workaround without a problem, but I think it is something to consider for usability.

          thanks a lot anyways! 🙂
          daniel

          #7011
          Olly
          Admin & Mod

            >there is no class for custom groups as a general class
            sure there is (unless you are referring to something else)

            wppizza-ingredients-req-[x]-[y]

            where [x] represents first quarter/half or second quarter/half etc and [y] the custom group id
            so
            wppizza-ingredients-req-3-1 is the 3rd quarter of custom group id 1
            wppizza-ingredients-req-1-10 is the 1st quarter, or first half, or just the full thing if not using halfs/quarters of custom group id 10
            etc etc
            as there are no more than 4 quarters as max [x] will only ever be 1,2,3 or 4

            but you are right, it would not make it future proof when you add new custom groups, therefore…

            >I think it is a realistic scenario that you have dishes with specific ingredients which only show up only at that dish.

            which is precisely why you really should create meal sizes for specific meal types and then add the relevant ingredients for those as it is even a more realistic scenario I would have thought, that ALL your pizzas allow a bunch of certain ingredients and ALL your desserts (for arguments sake) allow ANOTHER bunch of ingredients.

            but maybe I am missing something (!?) (always a possibility of course)

            PS: maybe mealsizes should be renamed into mealsizes/types perhaps , but that’s just cosmetics

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘only show custom groups ingredients’ is closed to new replies.