Skip to content

Instantly share code, notes, and snippets.

@bhavik-kiri
Last active November 25, 2022 13:52
Show Gist options
  • Save bhavik-kiri/4e7e71902bfd20f75192b644d23c1a20 to your computer and use it in GitHub Desktop.
Save bhavik-kiri/4e7e71902bfd20f75192b644d23c1a20 to your computer and use it in GitHub Desktop.
It will remove the quantity from the cart details.
<?php
/*
* It will remove the selected quantity count from checkout page table.
*/
function remove_quantity_text( $cart_item, $cart_item_key ) {
$product_quantity= '';
return $product_quantity;
}
add_filter ('woocommerce_checkout_cart_item_quantity', 'remove_quantity_text', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment