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

help with woocommerce_before_calculate_totals hook

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.

Hi!

I want to programmatically change item prices depending on various parameters. Realise through via woocommerce_before_calculate_totals hook.

Realise through the woocommerce_before_calculate_totals. With default_currency all ok, but with other currencies this hook does not work, the priority does not affect, tried.

Help me, plz?

Hello

Do  you  use  fixed  price?

Otherwise, the plugin only uses these filters to change prices -  woocommerce_product_get_price  woocommerce_product_variation_get_price

 

Hello!

Yes, i use fixed price

Hello

Ok!  Please  disable  fixed  price  and   do a test

To change  prices  you can  use - https://currency-switcher.com/hook/woocs_raw_woocommerce_price/   AND  https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/

Hello

Yes, thanks, I decided it yesterday via woocs_fixed_raw_woocommerce_price for woocs price, and woocommerce_before_calculate_totals for default currency. The project is large, at present cant'd disable fixed price, but it seems to work with these hooks the way I conceived.
Thank you, Pablo!

Merry Christmas and Happy Hew Year!

Hello

Thank you and  welcome;)