[SOLVED] Encoding of output fields
Home – SaaS › Forums › Support questions › WooPrice Calculator (Pro) › [SOLVED] Encoding of output fields
- This topic has 0 replies, 2 voices, and was last updated 3 years, 5 months ago by
Anonymous.
-
AuthorPosts
-
November 7, 2017 at 10:05 am #7692
EGOR NIKISHIN
ParticipantHello!
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]November 7, 2017 at 5:25 pm #7712Anonymous
GuestHello Egor,
Could you please send us FTP and also WP-admin access credentials to https://altoswebsolutions.com/contact-us to solve the problem?Thanks
AtaurNovember 8, 2017 at 1:05 pm #7711EGOR NIKISHIN
ParticipantHello 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.November 9, 2017 at 11:41 am #7710Anonymous
GuestHello Egor,
You wear right to use “decodeUtf8” to the output fields to solve the problem. We fixed directly on your website.
Thanks
AtaurNovember 9, 2017 at 8:21 pm #7709EGOR NIKISHIN
ParticipantHello 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.November 11, 2017 at 4:00 pm #7708Anonymous
GuestHello Egor,
Yes, this bugfix will be included in the next release.What do you mean markup? Hear is example “
LABEL: VALUEthat you need?
November 11, 2017 at 8:30 pm #7707EGOR NIKISHIN
ParticipantHello 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.November 13, 2017 at 3:56 pm #7706Anonymous
GuestHello Egor,
I guess that the new version will include your request and will be released around Saturday.Thanks
AtaurNovember 13, 2017 at 9:58 pm #7705EGOR NIKISHIN
ParticipantHello 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!November 22, 2017 at 11:44 am #7704david
ParticipantHi 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.
DavidNovember 23, 2017 at 9:37 am #7703EGOR NIKISHIN
ParticipantHello 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.December 4, 2017 at 10:49 am #7702EGOR NIKISHIN
ParticipantHello!
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.December 4, 2017 at 1:37 pm #7701david
ParticipantHi 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 DavidDecember 4, 2017 at 1:59 pm #7700EGOR NIKISHIN
ParticipantHello 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]December 6, 2017 at 9:04 pm #7699EGOR NIKISHIN
ParticipantHello!
Have you received my email with credentials? -
AuthorPosts
- You must be logged in to reply to this topic.