fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Button Language Issues

Edgar Isaakyan

Hello,

I have language issues with the Add to Cart button. Sometimes it displays on the base language, which is Romanian, the English “Add to cart” and sometimes on the English part displays between products the “Adauga in cos” which is in Romanian. As you can see in the image below.

Screenshot 2024-02-28 at 13.31.18.png

I have tested this with incognito on https://www.elementor.marketaroma.com/en/ in the Flavours section, when you use the product carousel.

Also the same issue I found on the https://www.elementor.marketaroma.com/en/catalog/fragrances-for-professional-perfume-diffusers/ when you use the load more button.

Screenshot 2024-02-28 at 14.12.53.png

It seems to me that when the ajax is loaded the button bugs out.

Thank you

Hakik Zaman

Hi Edgar,

Thanks for reaching out to us.

Could you temporarily disable our Swatches plugin and check how it behaves?

Hope to hear from you soon.

Thank you

Edgar Isaakyan

I already did that and the translate issue doesn’t happen anymore. Sorry I forgot to mention this.

Hakik Zaman

Hi Edgar,

Please make sure you have translated all the possible button text(string) of the WooCommerce Plugin.

Here is the possible button text from WooCommerce Plugin:

-> Buy product

-> View Products

-> Add to cart

-> Read more

-> Select Options

If not, please translate all the possible button text(string) of the WooCommerce plugin.

After doing it, please, try again.

Thank You

Edgar Isaakyan

I translated every string I found with “Add to Cart”, which didn’t fix anything.

What I am noticing is that when I refresh or use the carousel or use the show more button in the category page is that before showing the wrong language to the add to cart, it displays the “Select Options” button first then changes.

Is this how the plugin normally works?

Hakik Zaman

Hi Edgar,

I translated every string I found with “Add to Cart”, which didn’t fix anything.

Please also translate all the strings I have given in my last reply.

Is this how the plugin normally works?

Could you record me reproducing your issue using a tool like this? https://www.useloom.com
It helps me to quickly figure out the issue.

Thank You

Edgar Isaakyan

https://we.tl/t-YU057xjNRf – in here are the video.

But I found something, this is how the card list is built.

The image has the .wvs-archive-product-image

https://prnt.sc/hWWXlmJDttBu

The container has the .wvs-archive-product-wrapper

https://prnt.sc/5cGMBB8N_KVM

The button doens’t have the class .wvs-add-to-cart-button, because if I add it the button doesn’t change to add to cart anymore, also the ajax isn’t working anymore it just loads. Also I see that in the builder it displays “select options” but in Romanian. 

https://prnt.sc/F-UC7DIjMDwE

 

Hakik Zaman

Hi Edgar,

Where did you find them?

You have to Sync Loco to get those strings: https://paste.pics/QH251

In the WooCommerce plugin?

Yes, in WooCommerce Plugin.

Thank You

Edgar Isaakyan

I tried with another PC, other browser. On Romanian it doesn’t do that anymore it seems, but in english it does that and displays some of the products with add to cart in Romanian

 

https://paste.pics/QH2MH

Edgar Isaakyan

Hello so I used this snipped code to test and replace button text:

add_filter('woocommerce_product_add_to_cart_text', 'replace_cart_text');
add_filter('woocommerce_product_single_add_to_cart_text', 'replace_cart_text');
function replace_cart_text() {
if (get_locale() == 'ro_RO') {
return 'Kaufen';
}
if (get_locale() == 'en_US') {
return 'Buy now';
}
}

And it stills displays wrong!!

https://paste.pics/QH8SU

I am trying to go live with this website this week, but I can’t because of an issue of a plugin that I paid for. Of your plugin.

Hakik Zaman

Hi Edgar,

Please kindly do a plugin compatibility check by doing these steps to identify the error :

=> Deactivate all of your additional plugins except WooCommerce and WooCommerce Variation Swatches Plugin with the necessary translation plugin.

=> See if the problem persists.

=> If the problem is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

If the above step doesn’t help. Will you please share a staging site with this issue but a few products?

We can also give you a staging site if you need one. You have to replicate the issue on the staging.

Hope to hear from you soon.

Thank You

Edgar Isaakyan

Hello,

I had to create a javascript code to fix the issue your plugin is doing so we can go forward, but once the website is live you can use the stage website we have right now to do the testing to find out what the issue is.

It’s not possible for you as a paid premium plugin to ask me to do the testing for the problem caused by your plugin. Why is the support included in the anual payment then?

I find this a bit disrespectful, do your job properly, that is why we pay for your services. Otherwise  I want the support discounted from the anual price.

Hakik Zaman

Hi Edgar,

Some of our customers want to perform this test by themself.

Because some themes are integrated with some plugins and disabling them may break the site.

So, I asked you to do that. Please don’t take that as disrespectful.

I have also asked for a staging site so that I can test it from my side.

I hope you will understand.

Thank You

Hello,

I tried to fix the issue and I did some tests with the other plugins deactivated and still happens.

There are 2 issues:

The language thing from above. We created a JS code for the issue, but only for English. But after I deactivete and activated plugins it started to do it on the Romanian version.
When I try to add to cart multiple products fast it doesn’t adds them to the cart. I think the code is interrupted. If there is a server problem and I need to increase something so it rolls the code faster let me know, or if you find a solution for it.

Please let me know when you want to start testing on the website so I wont touch anything until you finish.

This is not a live website, it is in construction and we have automatic back-up every morning. So you can try anything on it.

Also there are some custom codes in functions.php, I removed those too when I did the testing.

We try to go live but this issues keep us in place.

Hakik Zaman

Hi Edgar,

Please check the button text translation issue.

Also, please keep the staging site open to test it further.

For your second issue, will you please record your issue using a tool like- https://loom.com

It helps me to quickly figure out the issue.

Thank You

Hello Hakik,

 

So I have to think you solved the translation issue?

The website will be open till the issues are fixed, don’t worry.

Also this is the video with the add to cart button issue:

https://we.tl/t-SvbbArKC4N

 

Thank you

Hakik Zaman

Hi Edgar,

Yes, I am working on this. I will let know once I am done.

Thank You

Hakik Zaman

Hi Edgar,

Please check the language issue of the cart button on your staging site.

I have replicated the issue on our staging site. We will test it further on our staging site.

For the multiple cart button click issue, I have contacted our development team. They confirmed that when you click the button for one product it processes the request. If you click multiple buttons the previous process interrupts.

This is how the WooCommerce Ajax cart button works.

Please let me know your thoughts.

Thank You

Hi Hakik,

I looked this morning seemed fine, I will test a bit more today to be sure.

Also I guess we need a better server so the code is loaded faster.

 

Thank you very much for your help. I will let you know if everything is ok with the add to cart button.

I wish you a great day.