[SOLVED] Required Field & Output Text

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [SOLVED] Required Field & Output Text

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8087
    pakadg
    Participant

    Hi,

    I want to ask 2 question :

    1. How to make field required? So when add to cart, it will not calculate / checkout before the required field filled.
    2. I load xlsx as calculator, but as we know, in excel not all output based on numeric. Can I using text as an output? So it will show the text in the field rather than numeric type.

    Thank you for your awesome plugin.

    #8092
    Enrico
    Participant

    Hi,

    1. If it’s a numeric number you can setup Maximum/Minimum values. If it is a List/Radio, we’re developing this feature and should be ready with this month or the next one.
    2. Ok we’ll do it for you because it’s not that hard. Please if you want after we developed it, make us a donation

    Best regards,
    Enrico

    #8091
    pakadg
    Participant

    Ok we’ll do it for you because it’s not that hard. Please if you want after we developed it, make us a donation.

    Sure, if your team create this awesome plugin more better and keep upgrading while listening your customer. I believe not only me who will make donation but everyone will buy your plugin because your plugin add value to other.

    Thank you

    #8090
    pakadg
    Participant

    hi,

    probably when you will released text as an output?

    or could you can give some guide /how tos so I can do it by myself.

    Thank you very much.

    #8089
    Enrico
    Participant

    Hi pakadg,

    I don’t know when the next release will be available (I think the end of the month), but you need to:

    admin/awspricecalculator/Helper/CalculatorHelper.php, function calculatePriceAjax:

    change from:


    $value = number_format($fieldResult, $decimals, $decimalSeparator, $thousandSeparator);

    to:


    if(is_numeric($fieldResult)){
    $value = number_format($fieldResult, $decimals, $decimalSeparator, $thousandSeparator);
    }else{
    $value = $fieldResult;
    }

    Please make a backup of the file before edit it.

    Best regards,
    Enrico

    #8088
    Enrico
    Participant

    Hi pakadg,

    This feature is now available in 2.0.4

    Text or numeric output is automatically detected

    Best regards,
    Enrico

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.