PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

woocommerce_save_product_variation hook not being triggered

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

I'm trying to use this plugin with a custom code snippet that's executed by the woocommerce_save_product_variation hook. But I'm finding that editing/saving values in the product editor does not seem to trigger this hook.

Is there a way to trigger this hook or another hook I can use to execute some custom code on variation save?

Many thanks.

 

Regards,

Jason

Hello Jason

Please  try  to use this  hook - woocommerce_update_product_variation

Hi Pablo,

Thanks for the quick response. That works, but how can I access any new values just entered? I was using $_POST['_field_name'][$variation_id] before.

Regards,

Jason

Hello Jason

If  you  need   get  values - woobe_before_update_product_field  - https://bulk-editor.com/document/more-settings-implicit

Hi Pablo,

Great, that's working too.

Since I'm programmatically updating the value of another field, is there a way to trigger a refresh of the variation's data on update so the user sees all the new values?

 

Thanks,

Jason

Hello Jason

You can trigger pressing this button - https://c2n.me/4bRfFpX.png