Ecommerce Shopify WordPress Discussion

After installing new WordPress and WooCommerce some of my code are not working. Is it because of the use of block theme?

I have a few hooks that were working perfectly. But recently i have installed a new WP and WooCommerce plugin. Now those codes are not working. This is one of the few hooks that are not working. I don't know why. I have tried switching to diefferent themes but still not working. public function deduct_bogo_discount_amount_from_subtotal( $cart_subtotal, $compound, $obj ) { $new_price = 10; $final_subtotal_price = wc_price( $new_price ); return $final_subtotal_price; } add_filter( 'woocommerce_cart_subtotal', [ $this, 'deduct_bogo_discount_amount_from_subtotal' ] , 10, 3 ); similarly some other hooks such as, woocommerce_cart_item_price, woocommerce_cart_totals_before_order_total, woocommerce_cart_subtotal, woocommerce_cart_product_subtotal are not working.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
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.