• Resolved nuessly

    (@nuessly)


    I am selling an item that costs $6.50/unit. I’m using a slider with a maximum or 6 units. There is a $0.50 discount PER UNIT for each incremental increase in units purchased. So,1 unit = $6.50, 2 units = $12.00, 3 units = $16.50, 4 units = $20.00, 5 units = $22.50, and 6 units = 24.00

    I’m not great at math like this, so I asked CoPilot. CoPilot gave me the following formula:
    T(n)=n×(6.50?(n?1)×0.50)

    Let ( n ) be the number of units purchased. The initial cost of one unit is $6.50. For each additional unit, the cost decreases by $0.50. So, the cost for each unit when ( n ) units are purchased is ( 6.50 – (n – 1) \times 0.50 ).

    The total cost ( T ) for ( n ) units is the cost per unit times the number of units.

    I do not know how to make that work with the calculations for this plugin. If someone could help, I would be so grateful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @nuessly,

    I hope you are doing great today.

    You can use the following formula in the calculation field for this:

    {slider-1}*(6.50-({slider-1}-1)*0.50)

    – replace {slider-1} with the actual name of your slider field, in case it’s different (e.g. {slider-2}, {slider-3}, etc.). Screenshot: https://prnt.sc/Yj4ESArq71jp

    Hope this helps. Let us know if you have any questions.

    Best Regards,
    Dmytro

    Thread Starter nuessly

    (@nuessly)

    Hello. This is working as requested and gives me a better idea for how to use the calculations. Thanks so much for the helpful reply ??

    Thread Starter nuessly

    (@nuessly)

    I’m replying again to mark this question solved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help With A Calculation For Increasing Volume Discount.’ is closed to new replies.