We are going to use the ingredients plugin…

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Extensions Add Ingredients Support We are going to use the ingredients plugin…

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3937
    Andi

      We are going to use the ingredients plugin and missing one “configuration”.
      Basically, we offere a Pizza with 3 free ingredients. A customer can select between different custom groups (cheese & others)
      – Either Mozarella or Gorgonzola
      – ham, salami, mushrooms, etc.

      A normal pizza with 3 ingredients could be: Mozarella, Ham, Mushrooms.

      However, one cannot order Mozarella, Gorgonzola + Ham –> Only one cheese is allowed.

      but one should also be able to order a “cheese-free” pizza:
      Ham, Salami, Mushrooms.

      So, basically, the 3 items that can be selected by the customers should come from 2 different groups.

      • so far, we came to the solution that we let the customer choose 0 or 1 from the cheese group
      • and up to 3 from the “others-group”.

      However, this solution gives 4 ingredients.
      I hope, I could somehow explain my ideas 🙂 it is very difficult for me to explain.
      Thank you!
      Andi

      #3938
      Olly
      Admin & Mod

        Hi

        i believe i understand what you mean

        at the moment there’s only the option of “Minimum total sum of all ingredients that have to be selected”

        essentially what you would need is

        Maximum total sum of all ingredients that can be selected

        I’ll put it on my list of things to do , but cannot promise any ETA yet

        #3939
        Andi

          Thank you! That would be great! 🙂
          Otherwise, I might go to implement it with a “additional” Javascript – however, it is difficult to figure out, which Javascript function is triggered on the different clicks. Maybe a functional reference would be of great us 🙂

          However, we really like this plugin and appreciate all your work! it is great! 🙂

          #3940
          Olly
          Admin & Mod

            just “additional” js won’t do as the user – theoretically – could “persuade” the js to accept more than allowed ingredients if he were to edit the hidden elements on the page (although admittedly, he/she would have to spend quite a bit of time and energy to find out how this is exactly put together, but it’s possible)

            there is also a server side validation that takes place to check this stuff, so it would have to be put in there too. once you were to do that (i.e hack the plugin), you would not be able to update it anymore without alwasy having to re-apply any changes you may have made

            PS RE functional reference : if you look at the js/scripts.source.js there are already lot of comments as to what does what (still won’t be that easy/straightforward). as i said though, that’s only half. serverside validation should be there too

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘We are going to use the ingredients plugin…’ is closed to new replies.