Bug: Variant miscalculations

  • Support OnlineSat-Thu / 9:30am - 5:30pm (GMT +6)
  • Your Time Our Time

Support Home Support Home FoodBook Bug: Variant miscalculations

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9272
    toneee
    Participant

    There is a major issue that occurs during option selections on variant products with different pricing! WooCommerce correctly calculates pricing, but FoodBook does not. Consider the following (simplified) scenario:
    Beef options

    The “Massaman” variable product includes your choice of meat and a choice of rice.

    • Steamed white rice is free
    • Substitutions (brown rice or egg-fried rice) are +$2 more
    • Chicken and tofu options (w/ free white rice) are $10
    • Beef and shrimp options (w/ free white rice) are $12

    Example pricing
    To accommodate, the buyer chooses one meat and one rice. Based on the above, chicken w/ white rice would be $10, but beef w/ white rice would be $12. Chicken with brown rice would be $12, and beef w/ brown rice would be $14.

    Duplicating the error
    To start, we can see here that WooCommerce correctly calculates the beef w/ white rice for $12.
    Beef w/ white rice using WooCommerce is $12.

    WooCommerce correctly calculates brown rice for $14.
    WooCommerce correctly calculates beef w/ brown rice as $14

    Next, let’s try the same with FoodBook. You will see that it miscalculates beef w/ steamed white rice; it should be $12. In order to force it to calculate the correct price, the user must first select another rice choice, then select the white rice again. (Sometimes this step must be repeated a couple of times to correct itself, and sometimes it won’t ever correct itself!)
    FoodBook miscalculates beef w/ white rice

    We want to avoid placing all 12 combinations (variations) into a single dropdown, but this seems like the only option at this point, until you correct this bug. Yet, there’s 30 products and reconfiguring this to work around the bug would be a daunting task. Is there a way you can correct this bug?

    • This topic was modified 3 years, 4 months ago by toneee.
    #9279

    Dear toneee,

    We are sorry to say that FoodBook only supports global attributes for a variable product, it does not support custom attributes.

    Please check this article https://docs.woocommerce.com/document/variable-product/ to know steps by steps on how to create a variable product using global attributes.

    Moreover, you could use the “Add Features” option of FoodBook.

    Best Regards,
    ThemeLooks Support Team

    #9288
    toneee
    Participant

    Thank you for your prompt reply. Can you refer to documentation regarding FoodBook’s “Add Features”? I am unfamiliar with this functionality.

    Actually, the attribute in question is indeed global.
    Choice of rice is a global attribute

    Thanks again.

    #9290

    Dear toneee,

    You will find out the “Add Features” options in the product edit. Please check out this screenshot https://prnt.sc/vfi8bc as a reference.

    Best Regards,
    ThemeLooks Support Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
happy hour