Fixes fatal error caused by calling is_type() method on undefined product object. Added a check to ensure the existence of the product object before calling is_type() method in order to prevent the error. This resolves the issue encountered on the WooCommerce cart page.
Fixes fatal error caused by calling is_type() method on undefined product object. Added a check to ensure the existence of the product object before calling is_type() method in order to prevent the error. This resolves the issue encountered on the WooCommerce cart page.