George Botsev
Forum Replies Created
-
Hello!
For some reason, my previous reply was not published here, so I am writing again.
As you already noted in the ticket that you referred to in WPML forum, you can do what you want by changing the string language to some other language, and then translate to the default language.
I would not advise using that method as it is not the proper way of how things are intended to work.
And yes, I was suggesting that you should edit the file manually.Hello
There could be a number of issues.
It is possible that the .mo files are not complete and to not have all the strings that you expect to have.
It is also possible that the locale is different from the expected file name, and thus that you are not loading the proper files.
Usually WordPress automatically downloads these .mo files, but if you have done that by hand, then make sure that the file looks like in example: woocommerce-es_ES.mo for Spanish.Hello.
This is a forum related to WooCommerce Multilingual.
Please direct your WPML questions to the WPML forum.
To respond to you – if you wish to change the default language of the strings – you can either use the method that is described to work in that ticket or just change the string itself so that represents the value that you want to translate.Forum: Plugins
In reply to: [WPML Multilingual & Multicurrency for WooCommerce] Attributes appear twiceHello and thank you for contacting us.
That issue is very strange and I am not sure what could cause it.Have you checked if you can reproduce the same behaviour with a minimal set of plugins (WooCommerce, WooCommerce Multilingual and WPML plugins) and a theme like Storefront?
This is usually a good step in determining if the bug comes from a certain plugin or theme.
Of course, if you wish, you can open a new ticket in our support forum at wpml.org where one of our experts could help you debug this issue and where it comes from.Yes, it should be 6 – I just provided the exact line of code so that you can find it.
Perhaps if you trigger the cron job for updating the currency rates, then the cache would be cleared. I am not sure though.
I also edited the file: \woocommerce-multilingual\classes\multi-currency\class-wcml-exchange-rates.php at line: 163 for the lifting charge.
$rates[ $k ] = round( $rate * ( 1 + $this->settings['lifting_charge'] / 100 ), 4 );Forum: Plugins
In reply to: [WPML Multilingual & Multicurrency for WooCommerce] rate update frequencyWrong ticket. sorry
I just tested in a clean install, after doing the adjustment from 4 to 6 where was set.
Here are my results: https://imgur.com/a/gMBAgUK
As you can see, there is 6 digits after the decimal.I see…
Have you checked if the value was really updated?
I suggest that you turn-off the rate, save the settings page and re-enable it again and force a manual update first.I have escalated the issue to our developers.
Once they check it and suggest a fix, I will let you know.Forum: Plugins
In reply to: [WPML Multilingual & Multicurrency for WooCommerce] rate update frequencyI think this could be done with custom code by doing a cron job and running update_exchange_rates()
That function is in the file: \woocommerce-multilingual\classes\multi-currency\class-wcml-exchange-rates.phpI think that you are right.
I think that I found the place in our code where we limit this.
Please check \woocommerce-multilingual\classes\multi-currency\exchange-rate-services\class-wcml-exchange-rates-fixerio.php row 57$rates[ $to ] = round( $rate, 4 );Change the number 4 to a higher number (6)
Editing the place where the currency switcher is displayed can be done if you hide the currency switcher on the product template and add a custom one using shortcode or PHP code in your template, on the place that you desire to be placed.
You can refer to this documentation about the process: https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#adding-a-currency-switcher-to-the-front-endIt is also possible to design entirely custom switcher and template for it – https://wpml.org/documentation/related-projects/woocommerce-multilingual/designing-custom-currency-switchers-using-template-files/
Forum: Plugins
In reply to: [WPML Multilingual & Multicurrency for WooCommerce] add more cryptocurrenciesHello!
We are not the ones who define the currencies – they are defined by WooCommerce itself.
You can add a custom currency as shown here: https://docs.woocommerce.com/document/add-a-custom-currency-symbol/
Alternatively, you can suggest this as a feature request for WooCommerce.Hello!
Perhaps you should change the number of decimals in the second currency as shown here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currencies-options-and-rounding-rulesForum: Plugins
In reply to: [WPML Multilingual & Multicurrency for WooCommerce] Error 505👍
Glad to hear that you fixed it!Have a wonderful day and a joyful weekend!