mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
https://stackoverflow.com/questions/76912829/add-text-suffix-to-item-quantity-in-woocommerce-checkout-page
4 lines
229 B
Text
4 lines
229 B
Text
add_filter( 'woocommerce_checkout_cart_item_quantity', 'wtwh_echo_qty_front_add_checkout' );
|
|
function wtwh_echo_qty_front_add_checkout( $quantity_html ) {
|
|
return $quantity_html . ' <span class="qty-suff">(Tonnes)</span>';
|
|
}
|