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

Filter request

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, we are using your plugin and needed to make some modification for a special product in out shop.
We need to break out of this filter add_filter('woocommerce_product_get_regular_price', array($this, 'raw_woocommerce_price'), 9999, 2); that you have on line 315 - classes/woocs.php

Our solution for now is adding code in your plugin:

if( has_term( array( 'murals', 'muraler' ), 'product_cat', $product->get_id() ) ){
return $price;
}

in the filter function raw_woocommerce_price() on line 1735 - classes/woocs.php

Is there any way you can add a filter here that we can hook on to and escape the function if the product belongs to a certain category?

Hello

Please  read  this - https://developer.wordpress.org/reference/functions/remove_filter/