URL Parameter to Clear the Cart

When putting together bundles or products that go together (using the /?add-to-cart=73,82 url parameters), it would be very helpful to have a “clear the cart” options. For example /?clear_cart?add-to-cart=73,82. Sample code… add_action( ‘init’, ‘woocommerce_clear_cart_url’ ); function woocommerce_clear_cart_url() { if ( isset( $_GET[‘clear-cart’] ) ) { global $woocommerce; $woocommerce->cart->empty_cart(); } }

Checkout Based On Product

It would be nice to customize checkout fields to be changed based on what products or categories that are in the cart. Example would be a customer selects products from X category and they require shipping or special delivery instructions. I have sites that the checkout is different for certain products and would be easier…