Issue
-
Hi, trying to hide a product on woocommerce I got this error:
Warning: get_class() expects parameter 1 to be object, string given in C:\…\availability-scheduler-for-woocommerce\azh_woo_availability_scheduler.php on line 151
The line is:
if (is_object($product) && get_class(‘WC_Product’))
you could fix it simply checking if global $product is a product, or rather, change lines 151 and 194 to:
if(is_product($product))
I hope I have been helpful (even if didn’t check for related issues or side effects..)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Issue’ is closed to new replies.