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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by edens 1 month, 3 weeks ago.

Assigned support staff: Itamar.

Author Posts
August 25, 2019 at 8:17 am #4453467

edens

Hello friend,
I am using woocommerce checkout addons and also i am using WPML,
And i have multi currency in my website.

I have a problem that happens in my russian language with the russian rubble currency,
it seems that he is not changing, and keep to be the same amount like the USD amount in my english language,
this is not good and i need your help to fix it plz.

I have added you 2 screenshots so you will better understand this problem.

August 25, 2019 at 8:44 pm #4455109

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

It looks like Bigul my colleague is already helping you with this issue on another ticket here.
https://wpml.org/forums/topic/i-have-a-problem-with-russian-rubble-currency-and-product-addons-plugin/
Please continue handling this issue with Bigul because the other ticket is in a more advanced stage. In our forum, we try to keep one issue per ticket. Continuing with one ticket per issue helps not only supporters to focus on one issue at once, but also enables other users to find solutions to their questions faster.

Thank you for your understanding.

Regards,
Itamar.

August 26, 2019 at 7:37 am #4456427

edens

Hello my friend you are wrong,
he handling another issue.

The issue i have talked with you is very different and it is about the plugin woocommerce checkout add ons

August 26, 2019 at 5:32 pm #4460547

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, my friend.

I'm sorry about this, you are correct.

The WooCommerce Checkout Add-Ons by SkyVerge is compatible with WooCommerce Multilingual. https://wpml.org/plugin/woocommerce-checkout-add-ons-2/. Although I can see that it has not been tested for almost a year.

Nevertheless, I've noticed that the plugin's author has specific documentation on how to make it compatible with WooCommerce Multilingual. Here is the link.
https://docs.woocommerce.com/document/woocommerce-checkout-add-ons/#section-17
Specifically, what I think is related to the issue that you are having is here.
https://docs.woocommerce.com/document/woocommerce-checkout-add-ons/#multi-currency-support
Have you added this snippet to your custom code?

function wc_checkout_add_ons_wpml_multi_currency_support( $cost ) {

	return apply_filters( 'wcml_raw_price_amount', $cost );
}
add_filter( 'wc_checkout_add_ons_add_on_get_cost', 'wc_checkout_add_ons_wpml_multi_currency_support' );
August 26, 2019 at 6:21 pm #4460797

edens

no i did not add it,
I am sorry but i am a bit lost,
what should i do?

August 27, 2019 at 1:55 pm #4467449

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Here is what you need to do.

1. Open the functions.php file of the theme of your site with the code editor that you are using.

2. Paste this code into the end of the file.

<?php // only copy this line if needed
function wc_checkout_add_ons_wpml_multi_currency_support( $cost ) {
	return apply_filters( 'wcml_raw_price_amount', $cost );
}
add_filter( 'woocommerce_checkout_add_on_get_adjustment', 'wc_checkout_add_ons_wpml_multi_currency_support' );

3. Save the file.

4. Reload the homepage of your site.

5. Check the problem persists.

August 27, 2019 at 6:25 pm #4469093

edens

I have contacted the plugin author and he is handling my problem