Okay
  Public Ticket #2905084
Cost Calculator (JS pseudo code) Double the Price
Open

Comments

  • Yudha David started the conversation

    Hi! thankyou for the awesome plugin. i have a few question tho, I want to start a calculator form for my social media management service, my currency is IDR so I'll give you the example : 

    My Single Post Feed design fee is IDR 45,000 that's the price if they have the material already, I have a slider post quota from 1 - 90 and right after that i want to create a toggle that ask 'did you have the materials ready', if they said yes the total is still the same (multiplied by one) but if they choose no i want to multiply all the values from the previous slider by two 

    i already read the documentation but still have no clue, can you help me ? thankyou 

  •  1,701
    Support Agent replied

    Hi!

    Thank you for purchasing Cost Calculator and thank you for contacting us.

    We have made an example for you. Please note that this is just an example. 

    See the following code and the screenshots. They will guide you.

    var SlideBar = $1;
    var Switch = $2;
    var result = 0;
    if (Switch == 1) result = SlideBar * 45000;
    if (Switch == 2) result = SlideBar * 45000 * 2;
    return result;
    

    5379312064.png
    3480833334.png
    8417400863.png
    6106593244.png
    8940993028.png
    5126733957.png

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!

  • Wadea replied

    there have option to see two prices together?

    I want to see regular price and price with discount together .. for example

  •  1,701
    Support Agent replied

    Hi!

    Thank you for contacting us.

    You can add Subtotal element within the Calculator Group.

    Please see the following link.

    http://documentation.bold-themes.com/cost-calculator/cost-calculator-group/#subtotal

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!