Okay
  Public Ticket #1773774
Own variable names in Cost calculator
Closed

Comments

  • smweb started the conversation

    Hi,

    thank you for great plugin, everithing works fine.

    There is a little problem with variables in JS pseudo code. When creating big forms with 100+ variables, it is difficult enough to match variables ( $1 , $2 etc) with their elements. How can we 

    1. set own variable names for each element 

    2. if it is impossible, where can I see which variable matches the element?

    Thanks in advance!

  •  651
    Support Agent replied

    Hi,

    Thank you for purchasing our plugin, we are glad you like it.

    You can assign variables any name you want, variables will match elements in order they are added to the Cost Calculator group.

    First variable you add to pseudo code, let's say you name it item1, will represent the first element in the group, second variable (e.g. item2) will be second in line element in the group, and so on.

    You can find additional info on how Cost Calculator group works in our online documentation.

    Let us know if you need additional assistance with setting this up.

    Regards, BoldThemes team

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

  • smweb replied

    Thanks for the reply. 

    Yes, with Cost Calculator group everithyng is ok ( see attachment, pic1).

    "First variable you add to pseudo code, let's say you name it item1, will represent the first element in the group, second variable (e.g. item2) will be second in line element in the group, and so on."

    Well, but what, if any of elements order changed or any element was deleted? It is very difficult to find out which element now matchs $12, for example. 

    I'd like to show anywhere in admin side actual element-variable match. Please see attachment (pic 2). I hope it is possible.

    Thanks in advance.

    p.s. pls see attachemnts in next message

  • smweb replied

    Please see the prevoius message. 

    Attached files:  pic1.jpg
      pic2.jpg

  •  651
    Support Agent replied

    Hi,

    No, unfortunately, it is not possible to label elements and use that to call variables in pseudo code. You can label them with, for example, custom ID, but that would only be to help you navigate elements, they will still be called in order they are added to the group.

    Thank you for understanding.

    Let us know if you need help with anything else.

    Regards, BoldThemes team

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