[Resolved] SKU VARIABLE product does not match with the original language.
This thread is resolved. Here is a description of the problem and solution.
Problem:
I want to translate the SKU number value in the Advanced Translation Editor. Solution:
By default, the Advanced Translation Editor does not include the numeric value. If you want to translate this value, please add the code below to the file functions.php in the theme folder.
Hallo!
When translating a variable product, the SKU (on my website SKU rename to REF) number is displayed from the PARENT product but not from the VARIABLE product as in the original language.
I can provide all accesses so that you can familiarize yourself with the situation.
ORIGINAL hidden link
OTHER LANGUAGE hidden link
By clicking on one of the Product options you will see below after the Product Description there is REF.
This is a link to the test product, it shows that now when switching to another language there is a replacement for REF hidden link
the problem remains that in order to start this process it is necessary to make some changes in each product so that the translation can be updated when we update the translation new lines appear there
Is it possible to run this process somehow automatically so that you don’t have to go into each product, make some changes there and then make changes to the translations?
or am I going the wrong way? Please tell me what would be more correct
You can go to Products > Select products in bulk and click on Update button to update products to sync the custom field value to the translation product.
I am experiencing a very strange problem, there is no way for me to translate SKUs in a variant product.
I added the lines
<wpml-config>
<custom-fields>
<custom-field action="translate">sku</custom-field>
<custom-field action="translate">ref</custom-field>
</custom-fields>
</wpml-config>
into the configuration file to make the SKU field translatable to hidden link
If I edit a previously created product such as product descriptions, the SKU lines (wc_variation_field:_sku) for NOT appear in hidden link.
If I change (Add extra digits or characters that should not be present) in a previously created product SKU in a variation product, the SKU (wc_variation_field:_sku) lines for SKU (wc_variation_field:_sku) appear in hidden link.
But if I return the Correct SKU number then from the translations this wc_variation_field:_sku string disappears and the SKU Reappears as in the parent product, not as in the variation product in the Main language.
I am slowly going crazy, I have tried every possible way. Please I really need your help, I can provide all the accesses needed to log into the admin.
or you can manually set the translation preference field in WPML > Settings > Custom Fields Translation > Click on "Show system fields" and search for this field.
By default, the Advanced Translation Editor does not include the numeric value. If you want to translate this value, please add the code below to the file functions.php in the theme folder.
Thank you very much, your tips were incredibly helpful and I managed to achieve the result that I needed. Your technical support is amazing.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.