Ecommerce Shopify WordPress Discussion

Compare variation products price before and after updating

I have a variable product in woocommerce. I want to update its price but I have to have previous and new price for comparision. woocommerce has many hooks like woocommerce_admin_process_variation_object woocommerce_before_save_product_variation but none of them give the previous price. All give the new price. It is possible to change core files of woocommerce but it's not recommended. Is there any way to get previous price? Appreciate any response I used These hooks: woocommerce_update_product_variation woocommerce_before_save_product_variation wp_ajax_woocommerce_remove_variations woocommerce_save_product_variation
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.