WooCommerce:添加“Quantity”前缀到“Add to cart”按钮前

Posted by: Fengjiajun Comments: 0

WooCommerce:添加“Quantity”前缀到“Add to cart”按钮前

function fjj_echo_qty_front_add_cart() {
 echo 'Quantity:'; 
}
add_action( 'woocommerce_before_add_to_cart_quantity', 'fjj_echo_qty_front_add_cart' );