Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/eea1b206cf55f48e6f94b4d489ea7932 to your computer and use it in GitHub Desktop.
Save AshlinRejo/eea1b206cf55f48e6f94b4d489ea7932 to your computer and use it in GitHub Desktop.
Discount rules v2: Change priority of price strikout for variable products
add_action('advanced_woo_discount_rules_after_initialize', function() {
if(class_exists('\Wdr\App\Router')){
remove_filter('woocommerce_variable_price_html', array(\Wdr\App\Router::$manage_discount, 'getVariablePriceHtml'), 100);
add_filter('woocommerce_variable_price_html', array(\Wdr\App\Router::$manage_discount, 'getVariablePriceHtml'), 1000, 2);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment