• Resolved augustinermonch

    (@augustinermonch)


    Hi i try to make a Calculation with Custom Product addons.

    I have several “Selector” with Label and Value like 0011
    in the calculation i added a second value to the value like
    ({field.wcpa-select-1622577289602.value}==0001?4:({field.wcpa-select-1622577289602.value}==0002?8:({field.wcpa-select-1622577289602.value}==0003?16:({field.wcpa-select-1622577289602.value}==0004?32:({field.wcpa-select-1622577289602.value}==0005?8:({field.wcpa-select-1622577289602.value}==0006?16:({field.wcpa-select-1622577289602.value}==0007?32:({field.wcpa-select-1622577289602.value}==0008?24:({field.wcpa-select-1622577289602.value}==0009?24:({field.wcpa-select-1622577289602.value}==0010?12:({field.wcpa-select-1622577289602.value}==0011?18:0)))))))))))

    in the end i created a big math Form

    My Form is working but the price from the Product site dont match with the cart.

    For example: on the productsite its 948.88$ and in the cart its 657.93$

    Can someone help me with my project ?

Viewing 1 replies (of 1 total)
  • Hi,

    Try this formula:

    (({field.wcpa-select-1622577289602.value}==0001)?4:
    (({field.wcpa-select-1622577289602.value}==0002)?8:
    (({field.wcpa-select-1622577289602.value}==0003)?16:
    (({field.wcpa-select-1622577289602.value}==0004)?32:
    (({field.wcpa-select-1622577289602.value}==0005)?8:
    (({field.wcpa-select-1622577289602.value}==0006)?16:
    (({field.wcpa-select-1622577289602.value}==0007)?32:
    (({field.wcpa-select-1622577289602.value}==0008)?24:
    (({field.wcpa-select-1622577289602.value}==0009)?24:
    (({field.wcpa-select-1622577289602.value}==0010)?12:
    (({field.wcpa-select-1622577289602.value}==0011)?18:0)))))))))))

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Product addons Wrong price in Cart’ is closed to new replies.