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.
This topic contains 17 replies, has 2 voices.
Last updated by 10 months, 3 weeks ago.
Assisted by: Andreas W..