Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Pizza attributes - second opinion requested

    Price of pizza changes according to toppings.

    Toppings are option values.

    All toppings same price.

    The logic behind the toppings should be:
    a = Total amount of removed toppings added together
    b = Total amount of extra toppings added together

    If b=0 or b=a or a>b the price does NOT change.
    if b>a then price=price+(b-a)

    Can ZC be coded to do that with the option value prices without re-writing the whole thing?

    I know we normally say just about anything can be done with the right skill, but this is proving a bit of a tricky one . I have asked someone who I know to be an expert and their response was no, but I'm just wondering if anyone else can think of a way to achieve this.

    Or - thinking aloud - possibly a workaround ignoring the actual value (because they are all the same) and "simply" adding up the numbers of attributes applied and doing the calculation based on that?
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Pizza attributes - second opinion requested

    Ryk,

    Why the need for "remove" toppings??

    Have std offerings and a build you own with

    add 1
    add 2
    add 3
    etc
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Pizza attributes - second opinion requested

    ... gotta' have the remove - I want a Cowboy pizza minus the onions plus olives and extra mushrooms
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Pizza attributes - second opinion requested

    Kim's got it in one!

    You should see the trouble we're having with the "Special Deals" ... Any 3 pizzas (from a range of 22) with choice of 3 sizes with the ability to add any of 32 toppings (at different prices depending on size) and remove any of an average of 4 toppings ... works out at a LOT of attributes...so many that the page grinds to a halt...oh how we long for attribute dependant attributes!
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Pizza attributes - second opinion requested

    Hello Rick!

    Where've you been hiding?

    Have you opened a PizzaHut?

  6. #6
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Pizza attributes - second opinion requested

    Not hiding, just busy, busy, busy ... and not PizzaHut but a small chain of 100 stores in the London area.

    It's been a very interesting project with ZC!
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  7. #7
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: Pizza attributes - second opinion requested

    Have 2 options for each attribute:
    'No onions' + 'With Onions'

    'No Onions' would be the default and act as a 'remove' option.

  8. #8
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Pizza attributes - second opinion requested

    Ah, if only it were that easy!

    Part of the problem is that there are 32 different toppings available which could be added to any pizza, but each pizza starts with a different set of toppings (about 4 or 5).

    And that still doesn't get around the calculation problem of only changing the price when the extra toppings > removed toppings when above the basic price.

    But thanks for the suggestion - there may be a direction to go in here.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Pizza attributes - second opinion requested

    Rick, are these guys retired actuaries or bond traders? I've never heard of a pricing scheme this complicated (for pizza, for heaven's sakes!).
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Pizza attributes - second opinion requested

    Rick, have you ever taken a kid into a major sweetshop? They can't see the wood for the trees when there are 100000000's of options...

    ... take them to the corner shop where there's only a handful of options, and they're just as happy.

    ... why not offer a range of pizzas - say, 15 or 20 - where the composition of toppings for each pizza option is standard for that option.

    Then allow a smaller range of additions / subtractions per pizza...

    I can't see somebody ordering a Hawaiian pizza (pinapple) with extra mushrooms, pepperoni, chicken, olives, anchovies, artichokes, butter, ice-cream, cod-liver-oil, baking powder, cream, persil, linguini....

 

 

Similar Threads

  1. v139h Second Opinion on this Drop Down
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Jun 2013, 05:46 PM
  2. Need a second opinion...
    By DivaVocals in forum General Questions
    Replies: 12
    Last Post: 19 May 2011, 08:27 PM
  3. Pizza Attributes
    By CrabbyFatGuy in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 18 Oct 2007, 07:14 AM
  4. Pizza Store
    By alfonso.moreno in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 15 Oct 2007, 05:24 AM
  5. attributes..second dropdown dependent on first?
    By xquisite in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 25 Jul 2006, 04:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg