Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needs to retrieve a value from the converted price of WCML to use it with another plugin, specifically for setting up product feeds in USD for Google Merchant and Snapchat catalogs. Additionally, the client is unable to locate the 'wcml_load_multi_currency' function.
Solution:
We recommended using the wcml_product_price_by_currency hook to fetch product prices in a specific currency. Here is an example on how to use this hook:

// Get the EUR price of the product ID = 80
$product_id = 80;
$currency = 'EUR';
echo apply_filters('wcml_product_price_by_currency', $product_id, $currency);

This code allows selecting a product and specifying the desired currency to get its price. The client should integrate this hook within the Product Feed PRO Plugin to achieve the desired functionality. Additionally, we suggested that the client check if the Elite version of the Product Feed PRO plugin, which supports WPML, also supports the WCML Currency Switcher or if there are plans for its integration.

If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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 17 replies, has 2 voices.

Last updated by Andreas W. 10 months, 3 weeks ago.

Assisted by: Andreas W..

Author Posts
July 11, 2024 at 2:41 am #15931306

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

On the plugin's interface it says:

Why upgrade to Elite?
Enjoy all priviliges of our Elite features and priority support and upgrade to the Elite version of our plugin now!
1. Priority support: get your feeds live faster
2. More products approved by Google
3. Add GTIN, brand and more fields to your store
4. Exclude individual products from your feeds
5. WPML support
6. Aelia currency switcher support
7. Curcy currency switcher support
8. Facebook pixel feature
9. Polylang support
Upgrade to Elite here!

The say that this Elite Version supports WPML. I would suggest asking the plugin support if their Elite Version also supports the WCML Currency Switcher or if there are any plans for integrating it.

July 11, 2024 at 8:14 pm #15937543

Eslam Badr

Hi, Thanks for your notice.

I think they may not support WPML "I am not sure" but anyway, I can't only go for the pro version for only this solution "if it exists".

I hope you can still help me.

Regards

July 11, 2024 at 8:52 pm #15937730

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The problem is, that to obtain compatibility it requires the cooperation of the plugins' author and the changes can not be taken from our end in this case.

If the author only provides compatibility for third plugins in a "Premium" version, then we do sadly not have any influence on this.

They say, the "Elite" version covers WPML. It is not clear if it also covers WCML, but I see they have implementations to support other currency switchers in this version.

Please consult the plugin support about this issue.