How to change the name of an attribute permanently?

anonymous1971

Active Member
When I import products from Aliexpress [ reading glasses ] There are two major important attributes......eye prescription and frame color. When i Change these two attribute names to my language..........after importing new products from Aliexpress it creates new attributes in the old language? How to solve this?

1. imported attributes in english
attribute1.PNG

2.changed them to my language [ Dutch ]
attribute2.PNG

3. after importing new products....???
attribute3.PNG

This is a truly major problem. I have tried multiple solutions......do not work.
 

anonymous1971

Active Member
Is there any hack to translate attribute names in my language via a php file in woocommerce? Which php file do i need to edit?
 

Jess

Active Member
The attributes are functioning as designed. There is no link between the two so every time you import a product it won't know that you have changed the wording and that's where it should enter the new entries. So you just need to delete their entry in the product and enter your own. For proper listings you should be editing the attributes anyways so just add that to the list. You can setup up entries you just select from or text entry for the attributes.
 

anonymous1971

Active Member
?
No. Did you see this > 3. after importing new products....???
It continue's to add the imported variables. Your solution does not work. The only solution what works is that i can translate those two strings permanently in my language.........so it imports "preschription" and it's translated into my language which is "sterkte"
 

Sunster

Moderator
Staff member
I've got 100's of products setup exactly like @Jess said so no idea why it doesn't work for you. Setup attributes, configure terms, make the type selectable or text depending on what you want, import product, delete whatever you dont want/need, add yours and save. You cannot change the imported attribute name in the backend and expect the plugin to import into it. Yes it litters the backend but who cares, just clean house once in a while.

So why does it not work for you?
 

anonymous1971

Active Member
I will answer this later. Got a much bigger problem on hand. Aliexpress does not have a translation for my two major variables which are "Leesbril Sterkte" en "Kleur montuur". My target audience wants to read in Dutch...not in English. And since alibaba did not translate these into my language i import products with the wrong translation and there seems to be no way to have this in my language.

no...not in English

no.PNG

must be in Dutch

YES.png
 

Hasan

New Member
hi
AliExpress website can be translated into my language while I am using it but when i import it to my products' page it stays in English. It is a very big problem for me as my customers can 95% don't know English. I want my site to be all in Turkish if possible???
 

NicolasLagios

New Member
Hello.

Use javascript.

First check the link and after make the translation

eg
if (window.location.href.indexOf("el/product/") > -1) {
document.querySelector('[for="pa_cb5feb1b7314637725a2e7"]').innerText="Χρώμα"; //for color
document.querySelector('[for="pa_6f6cb72d544962fa333e2e"]').innerText="Μέγεθος"; //for size
document.querySelector('[for="pa_1ef722433d607dd9d2b8b7"]').innerText="Αποστολή από"; //for Ship location
}
 
Top