Disable ajax request for loading discount table on other than product detail page
Disable AJAX requests for loading the discount table on pages other than the product detail page.
add_action('advanced_woo_discount_rules_before_initialize', function (){
add_filter('advanced_woo_discount_rules_disable_load_dynamic_bulk_table', function($status) {
$status = "off";
if (is_product()) {
$status = "on";
}
return $status;
});
});PreviousFix for applying discount in cart even if it does not matchesNextDisable woocommerce_get_price_html event from other plugins
Last updated