Last active
November 25, 2022 13:52
-
-
Save bhavik-kiri/4e7e71902bfd20f75192b644d23c1a20 to your computer and use it in GitHub Desktop.
It will remove the quantity from the cart details.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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