• Resolved adriano0208

    (@adriano0208)


    hey guys, how are you doing?

    i’d like to know if your plugin do these requirements below:

    At WooCommerce, I have a product “Salted Pizza – 2 flavors”. In this product I have 2 attributes “flavor 1” and “flavor 2”. Each flavor is priced at half the value of the entire pizza for that flavor, for example: if the entire Mozzarella pizza costs $ 40, then the “flavor 1” field when selecting Mozzarella will charge $ 20. The “flavor 2” follows the same logic.

    So at WooCommerce, if you want half a mozzarella pizza ($ 20) and half a Filet Mignon ($ 30), $ 20 + $ 30 = $ 50 will be added.

    But here, when a pizza is 2 flavors, we charge the whole price for the most expensive flavor, in this example, it would be $ 60 (2x $ 30 Filet Mignon), instead of $ 50.

    For that, I need a script or plugin to do this:
    1 – identify if the product is eligible for the script (only pizzas with 2 flavors)
    2 – if so, compare the value of the two variations and find out which is the largest;
    3 – multiply the value found by 2;
    4 – add this price to the additional attributes (if any), such as “extra coverage”, “stuffed edge” (more attributes), etc;
    5 – update the product price;
    6 – if the user clicks BUY, the script must load this price into the shopping cart;

    could you help me?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘some requirements’ is closed to new replies.