Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Madrid (GMT+02:00)

This topic contains 3 replies, has 1 voice.

Last updated by Carlos Rojas 5 days, 9 hours ago.

Assisted by: Carlos Rojas.

Author Posts
September 29, 2025 at 4:00 pm #17441820

Kresimir

Hello WPML Support,

We are using the WPML Multilingual & Multicurrency for WooCommerce plugin (we noticed that plugin offers additional paid commercial upgrades or support through wpml.org) and need a small but important adjustment for consistency when saving prices for simple products and variations.

Specifically:
• File: inc/currencies/class-wcml-custom-prices.php
• Method: sync_product_variations_custom_prices
• At the end of this method, after the update, we would need to add the following action:

do_action( 'wcml_after_save_custom_prices', $product_id, $price, $custom_prices, $code );

We have tried various workarounds, but nothing has been reliable enough to hook into.

This action is necessary for us because we have a plugin that tracks price history, which is required by law in Croatia. Without this action here, it’s not possible to properly capture the price changes for variations.

Could you please add this action in next update?

Thank you in advance!

September 30, 2025 at 9:45 am #17443563

Carlos Rojas
WPML Supporter since 03/2017

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

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

Before I can escalate this ticket to our 2nd tier of support, we need to be able to run the change requested in a sandbox site. I have created a sandbox site with a fresh new WordPress + WPML + WooCoommerce installation, and I kindly ask you to:
- Access the sandbox site using this link: hidden link
- Finish the WooCommerce + WooCommerce Multilingual configuration
- Add the change to the code
- Check if there are no errors

If everything works correctly, then I will create a copy of the sandbox site and escalate this ticket to our 2nd tier of support.

Looking forward to your message.
Regards,
Carlos

September 30, 2025 at 11:26 am #17444094

Kresimir

Hi Carlos,

I've made the changes you asked for.

Thank you and BR

September 30, 2025 at 1:08 pm #17444879

Carlos Rojas
WPML Supporter since 03/2017

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

Timezone: Europe/Madrid (GMT+02:00)

Thank you very much for applying the workaround on the sandbox site.

I have escalated this ticket to our 2nd tier of support, where our specialists will analyze this workaround. I will get back to you as soon as I get an answer from them.