This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 9 replies, has 2 voices.
Last updated by mattiasL-9 1 year, 10 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
March 26, 2023 at 8:50 am #13330939 | |
mattiasL-9 |
Im trying to translate the buy button on product page for the english language. I have located and translated missing strings before on this site. But this buy button seems impossible to add from plugins or even to find the string for translation. I have searched for the string in both swedish and english but havent found it. I have followed your guide (https://wpml.org/documentation/getting-started-guide/string-translation/) which has helped me before, but not this time... Example page for a product page: hidden link So how do i find this string and translate it? |
March 26, 2023 at 11:00 am #13331287 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. Please let me know if you use a custom template for the Single Product template. Also, please check the following steps: Kindly check our guide to know more about translating texts in the admin texts screen. (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/) Best regards, |
March 26, 2023 at 11:51 am #13331567 | |
mattiasL-9 |
Hi and thanks for fast reply. No it is not a custom template for the single product page. I have tried the bullet points and also tried the things in your link but still cant find it :/ |
March 26, 2023 at 12:09 pm #13331601 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Your next answer will be private, which means only you and I can access it. ❌ Please backup your database and website ❌ ✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical. ✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site. Best regards, |
March 26, 2023 at 1:10 pm #13331767 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for the access details. I checked the test site and found that when deactivating the "Kadence Shop Kit" plugin, the add to cart button works correctly in both languages. Kindly check this product in both languages. (hidden link) Would you please tell me how you use this plugin to change the add to cart button? Best regards, |
March 26, 2023 at 2:17 pm #13331891 | |
mattiasL-9 |
Thanks for finding the issue. Kadence Shop Kit is being used to add unique elements to the product page. Such as breadcrumbs and a support section, for now. And Ferrita is going to use a upsell function in that plugin as well in the future. But i didnt know that Kadence Shop Kit was causing a problem with the add to cart button. I have searched for strings in Kadence Shop Kit but wpml could not find any in there? How do we add string from a plugin that wpml cant seem to find? |
March 26, 2023 at 2:52 pm #13331975 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, It depends on how the string is added in the (Kadence Shop Kit) plugin. The string could need to be registered for translation, or it could be not translatable and need custom coding. In your case, I found the strings added to the plugin. (Kindly check this hidden link) After that, I registered the admin text by adding the following code to the WPML-> Settings-> Custom XML tab. <wpml-config> <admin-texts> <key name="kt_woo_extras" /> </admin-texts> </wpml-config> In order to translate the string, please go to WPML-> String Translation and select the "admin_texts_kt_woo_extras" domain. (hidden link) I translated the string for single products. Kindly let me know if it works correctly on the front end. (hidden link) I hope this helps you. If you need further info, please let me know. Best regards, |
March 26, 2023 at 3:18 pm #13332003 | |
mattiasL-9 |
Ok thank you for the info and thanks for the translation. Since i like to learn, i cant see the add to cart string under the "admin_texts_kt_woo_extras" domain (hidden link) Which string is it that you have translated? |
March 26, 2023 at 3:22 pm #13332029 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Please check the attached screenshot to see the string. Regards, |