[SOLVED] Encoding of output fields

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [SOLVED] Encoding of output fields

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #7692
    EGOR NIKISHIN
    Participant

    Hello!
    I have a problem with encoding output fields in my calcs. My output fields are in Russian, and they render on my page incorrectly. Other fields work correctly even in russian language, problem is only with output fields.
    Could you suggest me something? [attachment=158]encoding.jpg[/attachment]

    #7712
    Anonymous
    Guest

    Hello Egor,
    Could you please send us FTP and also WP-admin access credentials to https://altoswebsolutions.com/contact-us to solve the problem?

    Thanks
    Ataur

    #7711
    EGOR NIKISHIN
    Participant

    Hello Ataur and thank you for the answer.

    i’ve sent email with credentials on https://altoswebsolutions.com/contact-us.
    i suppose that problem is that the result.OutputFieds don’t go throught decodeUtf8 function in main.js file.
    And it would be great if output fields contained some additional markup rather than just some
    tags.

    #7710
    Anonymous
    Guest

    Hello Egor,
    You wear right to use “decodeUtf8” to the output fields to solve the problem. We fixed directly on your website.
    Thanks
    Ataur

    #7709
    EGOR NIKISHIN
    Participant

    Hello Ataur.
    Yes, it works now, thank you.
    Will this fix be included in next public release?
    And how about a markup for output fields instead of just
    tags?
    I can make it by miself if you tell me the right place in theme where i can place the overwritten file.

    #7708
    Anonymous
    Guest

    Hello Egor,
    Yes, this bugfix will be included in the next release.

    What do you mean markup? Hear is example “

    LABEL: VALUE

    that you need?

    #7707
    EGOR NIKISHIN
    Participant

    Hello Ataur.

    Yes, i mean this piece of code:


    $outputFields = "br>";
    /**/
    $outputFields .= "[/color]{$field->label}: {$value}
    ";
    }

    it generetes simple markup inside .aws_output field like Test:400;
    i suffer from lack of markup to beautify it with css.

    i’ve made some additional markup for me like:


    $outputFields = "

    ";

    /**/
    $outputFields .= "

    {$field->label}

    :

    {$value}

    ";

    but i understand that my code will be overwritten with your next update.
    Could i put my overwritten file calculatorhelper.php somewhere in my child theme, in style of child plugin, or something similar?
    As far as a know, wordpress doesn’t support making child plugins.

    #7706
    Anonymous
    Guest

    Hello Egor,
    I guess that the new version will include your request and will be released around Saturday.

    Thanks
    Ataur

    #7705
    EGOR NIKISHIN
    Participant

    Hello Ataur and thank you for your help.
    I think the markup is a matter of taste, and the table markup maybe isn’t the best option, but it is worth adding classes to output label and value fields.

    I have a different issue with sorting of output fields – it will be very helpful if you add this option. Without sorting output fields are very unpredictable and chaotic.
    Thank you!

    #7704
    david
    Participant

    Hi Egor
    We agree on your point of view about “markup is a matter of taste” so we are shifting the delivery date to match your request.

    On your second issue “sorting of output fields” we are thinking about.
    David

    #7703
    EGOR NIKISHIN
    Participant

    Hello David and thank you for staying connected.

    About markup – it’s not a problem for me , i’ve made markup myself to fit my needs.
    About sorting of output fields – it would be very helpful.
    Thank you.

    #7702
    EGOR NIKISHIN
    Participant

    Hello!
    After update to latest version my calcs totally hangs. On product page i don’t see the price, and see infinitie spin of loading sign. On my chrome dev tab i see error in decodeUtf8 function. it seems that it doesnt work well:

    Uncaught URIError: URI malformed
        at decodeURIComponent (<anonymous>)
        at Object.decodeUtf8 (main.js?ver=4.9.1:375)
        at Object.success (main.js?ver=4.9.1:269)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at y (jquery.js?ver=1.12.4:4)
        at XMLHttpRequest.c (jquery.js?ver=1.12.4:4)

    Also i see strange symbol after price:

    [attachment=169]Weird.jpg[/attachment]
    Please help.

    #7701
    david
    Participant

    Hi Egor,
    Without any link we can’t see the problem.
    Please write to our support mail box (https://altoswebsolutions.com/contact-us) and will will check how we can solve your problem, if you like.

    Remember that the plug-in uses TF8 character encoding standard.
    Bye David

    #7700
    EGOR NIKISHIN
    Participant

    Hello David and thank you for reply!

    I’ve sent credentials to hello@

    I’ve found that my price settings in woocommerce make difference. I use space after price. In this case i have an error. If i change price settings in woocommerce not to use space after price it works fine.

    Another issue – decoding of calc labels in admin view doesn’t work:
    [attachment=170]err-code.jpg[/attachment]

    #7699
    EGOR NIKISHIN
    Participant

    Hello!
    Have you received my email with credentials?

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