Okay
  Public Ticket #2491427
Cost Calculator drives me Crazy
Closed

Comments

  • Konstantin Frantzis started the conversation

    Hy friends!

    Id like the cost calculator to multiply. Like the first position of dropdown is 58€, the 2nd. is 75€.

    So if 1st is selected I would like it to be multiplyed with the number mentioned in the slider. 

    For example: 

    50m² of Position 1: 50x58= 2900

    50m² of Position 1: 50x75= 3750

    Bey default it just calculates nonsense. So I read the documentary, searched the web and tryed couple of crazy things. but it did not work as I wanted it to.

    The Documentation seems to me out of date or maybe I'm just kind of insane.

    Could you hold my hand and tell me what to do to make it calculate well?

    Thank you for your help!

    Best regards!

  •  1,180
    Support Agent replied

    Hi,

    In order to achieve desired calculation you should use Cost calculator group which is container element. Place Select and Slider elements within it and define calculation in JS pseudo code like this:

    var a=$1;
    var b=$2;
    var fin_res=a*b;
    return fin_res;

    Place values properly in Select element, like this:

    8430676658.png


    Let us know if you need additional assistance.


    Regards, BoldThemes team

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

  • Konstantin Frantzis replied

    Hey! Thank you so much! Now it works perfect! You can close this ticket.

    Best regards!

  •  1,180
    Support Agent replied

    Hi,

    You are welcome!

    Regards, BoldThemes team

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