• Resolved igeezmo

    (@igeezmo)


    I need your advice or direction in building quantity dependencies in grouped products:

    Task

    We have e-commerce website on WordPress, Woocommerce, and we are selling food boxes bundles. User can make it’s own bundle, but we want to help him make it more easy:

    There are 4 bundles with 4 boxes inside (nested products)

    User need to enter number of persons, he wants bundle for, and on front this value will be calculated with nested products dependencies, and values changes automatically in product cards.

    Example:

    John enters our website, he needs to buy bundle for 15 people, on the front he enters value “15” in field and press button.
    After that page reloads, and he see 4 presets (Meat, Vegan, Ballance, Fish). All of them are already calculated for 15 persons.
    Logic for bundle:

    Bundle 1 Master value: 15

    Box 1 (for 8 persons): calculated 15/8 and round up to closest integer value: 2 (ceil)

    Box 2 (for 5 persons): calculated 15/5 and round up to closest integer value: 3 (ceil)

    Box 3 (for 10 persons): calculated 15/10 and round up to closest integer value: 2 (ceil)

    Box 4 (for 7 persons): calculated 15/7 and round up to closest integer value: 3 (floor)

    and so on…

    User will open Bundle product with predefined values, that he could change manually as well.

    How this could be implemented? Found some plugins, but they can’t push value to product before entering card.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce calculated quantity in bundle’ is closed to new replies.