Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter masterriemi1702

    (@masterriemi1702)

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, but I really do not understand your question. I guess you are needing to use conditional statements in your equation, something like:

    (function(){
    var result;
    if( 1<= fieldname1 && fieldname1 <= 10)
    {
    result = ...;
    }
    else
    {
    result = ...;
    }
    return result;
    })()

    Of course, in the previous equation you should replace the symbols … by the operations to evaluate if the condition is true, and the operations to evaluate if the condition is false.

    Best regards.

    Thread Starter masterriemi1702

    (@masterriemi1702)

    Dear Codepeople.

    Thank you for the response. I’ll solved it in a different way. The only problem (same link to see the form):

    Cost of one item 1.60 € but if i use the form and see the total, the form show me (if i insert quantity 5 for example ) 68 € but it should show 6,80 €.

    Is it possible to insert the “,” or a “.” ? ??

    Best wishes

    Plugin Author codepeople

    (@codepeople)

    Hi,

    In this case you should enter the “,” symbol as the decimal separator, but be sure the same symbol is not defined for grouping thousands or the plugin is not able to understand the correct format of the number.

    Best regards.

    Thread Starter masterriemi1702

    (@masterriemi1702)

    Thank you ! Looks fine. One last question before its finished :

    How i can configurate 2 characters after the “.” symbol. At the moment the Total price is 10.6 € it should show 10.60 Euro.

    Best wishes

    Plugin Author codepeople

    (@codepeople)

    Hi,

    You simply sould use the PREC operation, whose format is:

    PREC(X,Y) that rounds the X number with Y decimal digits, for example:

    PREC(1.2663, 2) = 1.27
    PREC(1.2663, 3) = 1.266

    Best regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How i can use quantity for one article’ is closed to new replies.