Woocommerce 吴邦国商业航运区消息发布
您可能知道,当woocommerce调试模式打开时,在购物车页面和结帐页面上,会出现一个通知,上面写着“客户匹配区域***”。 是否有任何方法使woocommerce在启用调试模式时不显示此消息?Woocommerce 吴邦国商业航运区消息发布,woocommerce,shipping,Woocommerce,Shipping,您可能知道,当woocommerce调试模式打开时,在购物车页面和结帐页面上,会出现一个通知,上面写着“客户匹配区域***”。 是否有任何方法使woocommerce在启用调试模式时不显示此消息? 非常感谢您的帮助。据我所知,您不能使用任何WooCommerce操作/过滤器来完成此操作,但您可以使用jQuery来完成此操作,如下所示: jQuery( ".woocommerce-message" ).each(function( index ) { let checkText = jQu
非常感谢您的帮助。据我所知,您不能使用任何WooCommerce操作/过滤器来完成此操作,但您可以使用jQuery来完成此操作,如下所示:
jQuery( ".woocommerce-message" ).each(function( index ) {
let checkText = jQuery(this).text();
if (checkText.indexOf("Customer matched zone") != -1) {
jQuery(this).css("display", "none");
}
});
我认为您可以将“woocommerce\u shipping\u debug\u mode”选项值设置为“否”