Add Quantity Text Before Add To Cart WooCommerce

If you are looking to spell out the word quantity before your add to cart button in WooCommerce, you’ve come to the right place. The code below will Add the word “Quantity” to the left of the Add To Cart button on your WooCommerce product pages. Simple add the code below to your theme’s fuctions.php file.

add_action( 'woocommerce_before_add_to_cart_quantity', 'wp_echo_qty_front_add_cart' );

function wp_echo_qty_front_add_cart() {
echo 'Quantity';

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *