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 3 replies, has 2 voices.
Last updated by Yvette 4 years, 11 months ago.
Assisted by: Yvette.
Author | Posts |
---|---|
October 20, 2020 at 1:16 pm #7266119 | |
devanshP |
I am using WPML with Woocommerce. So I am using this woocommerce function wc_get_attribute_taxonomies(); which gives me the list of attributes The problem is, I always get them in English irrespective of the language selected by user on front end |
October 21, 2020 at 12:31 am #7270075 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Hello Your ticket has been assigned to me. 1. APIs What we can do is to advise you on the use of our WCML API here: On cursory look, it does not look like we offer a filter to achieve exactly what you need/want. However, you might take a closer look at using the following filters to get the associated translated object-ids from the array of attribute_taxonomies that you get in English In other words, you will need to construct an array of translated attribute ids by using these hooks. A BIG CAVEAT: I am not a developer and you may prefer to contact a WPML Contractor for the work: 2. Custom Code We work with STANDARD Woocommerce plugin and commercial solutions. If you are a commercial developer, you can get additional support by joining our GoGlobal program here: Any other additional features or changes that you are making privately, is considered to be a custom solution. It is not for commercial use. And for this reason, it does not fall into our support policy. (see image). |
October 21, 2020 at 3:55 pm #7276945 | |
devanshP |
Thanks for your answer. How using woocommerce STANDARD function is considered as a custom code? wc_get_attribute_taxonomies(); So does that mean, there is no way to fetch translated attributes? On cursory look, it does not look like we offer a filter to achieve exactly what you need/want. |
October 21, 2020 at 6:45 pm #7277881 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
I don´t know how else to explain this. Code that is "custom" means NON COMMERICAL . If the code is just for your personal installation - it is custom for us. Our plugin is meant to be used "as is". For adding new features or programmatic support to hook into our infrastructure, you need to go to a contractor. We do not have the capacity in manpower or skills profile to support a custom development project. This is by design now. Admittedly we USED to do coding support in the past but the amount of support work was too great and detracted from our primary goal that is to catch bugs and deliver a working out-of-the-box plugin for the majority of our clients. With this in mind, the new support policy does not permit us to spend time with custom code questions anymore. If the code is for COMMERCIAL use, then we have another channel for that: GoGlobal The support forum is for clients that are trying to use our product out-of-the-box with other plugins with which we have working agreements with the plugin author. If our plugin is not working as it should - you come to the forum and we are committed to trying to get it to work right. You want to hook into our plugin or add a feature - this not out-of-the-box, it is not commercial, and detracts from other clients that are trying to install/use our plugin as intended. Our priority is to service these clients. We have a channel for you to use, the WPML contractors. It´s that simple. |