Created
September 4, 2023 13:39
-
-
Save wooxperto/f0a62021d0dd55f5bc23f5d339d809e9 to your computer and use it in GitHub Desktop.
Add to Cart Quantity Suffix at Single Product page on WooCommerce
This file contains 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 | |
/** | |
* @snippet Add suffix after quantity input field at single proudct page | WooCommerce | |
* @author WooXperto | |
* @date 04.09.2023 | |
*/ | |
if( ! function_exists("wooXperto_add_to_cart_quantity_input_suffix")){ | |
function wooXperto_add_to_cart_quantity_input_suffix(){ | |
echo "<span class='qty_suffix'>Liters</span>"; | |
} | |
} | |
add_action("woocommerce_after_quantity_input_field","wooXperto_add_to_cart_quantity_input_suffix"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add suffix after quantity input field at single product page.