// Clean WooCommerce Product & Cart for Car Rental

// 1. Hide SKU
add_filter('wc_product_sku_enabled', '__return_false');

// 2. Remove "Free Shipping" text from product page
add_filter('woocommerce_product_get_shipping_class', function($shipping_class, $product){
    return ''; 
}, 10, 2);

add_filter('woocommerce_product_shipping_class', '__return_empty_string');

// 3. Hide shipping section in cart & checkout
add_filter('woocommerce_cart_needs_shipping', '__return_false');
add_filter('woocommerce_cart_needs_shipping_address', '__return_false');

// 4. Remove shipping label from cart/checkout just in case
add_filter('woocommerce_cart_shipping_method_full_label', function($label, $method){
    return ''; 
}, 10, 2);
