sumight
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Reviews
In reply to: [Debug Bar Actions and Filters Addon] Produces fatal error in 5.7.2error message:
Uncaught Error: Cannot use object of type Automattic\Jetpack\Autoloader\jp35ca907b2e70db60b0c2c7d0ef0fe4bd\Shutdown_Handler as arrayanyone can solve the problem?
Forum: Plugins
In reply to: [LiteSpeed Cache] Make both front and admin slower just activate LSCACHEIt is OK now after I reset the LSCACHE to default.
Forum: Plugins
In reply to: [LiteSpeed Cache] Make both front and admin slower just activate LSCACHEremark: not set cache on. and the second time open the front page is very fast.
@rainfallnixfig Thank you.
add_filter( 'woocommerce_product_tax_class', 'big_apple_get_tax_class', 1, 2 ); function big_apple_get_tax_class( $tax_class, $product ) { if ( WC()->cart->subtotal > 150) $tax_class = 'Zero rate'; return $tax_class; }Thank you for patient. But it seems not work now. The tax still there When order amount is more than 150.
Also I get an error in the product page of admin as below:
Notice: Trying to get property 'subtotal' of non-object in ...\WWW\wp-content\themes\theme-child\functions.php on line 119An other question is I need add the country condition to avoid this snippet use for all countries.
Viewing 5 replies - 1 through 5 (of 5 total)