Y
Y
YaraMintFish2019-10-13 17:04:09
WooCommerce
YaraMintFish, 2019-10-13 17:04:09

How to add "pcs" after the quantity select field?

Greetings, comrades!
Is there an easy way to add the text "pcs." after the quantity selection field on the product page?
5da32e9330beb607912441.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2019-10-13
@YaraMintFish

function add_sht_after_count_input(){
    echo '<span>шт</span>';
}

add_action( 'woocommerce_after_add_to_cart_quantity','add_sht_after_count_input' );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question