Compatibility with themes
Some themes doesn’t support Woocommerce hooks, so you should add shortcodes [adp_category_bulk_rules_table] and [adp_product_bulk_rules_table] to necessary page templates (or directly to product description) OR you can submit new ticket to helpdesk.
If you use paid plugin/theme — please, upload it (as.zip file) to the ticket!
Flatsome:
1 2 3 4 5 6 7 |
add_filter( 'woocommerce_product_is_on_sale', function ( $on_sale, $product ) { if ( $on_sale && function_exists( 'flatsome_percentage_clear' ) ) { flatsome_percentage_clear( $product ); } return $on_sale; }, 1000, 2 ); |