How to remove <div class="quantity">
in woocommerce_quantity_input (Woocommerce)
$quantity=woocommerce_quantity_input();
$quantity_field= str_replace('<div class="quantity">', '', $quantity);
How to remove <div class="quantity">
in woocommerce_quantity_input (Woocommerce)
$quantity=woocommerce_quantity_input();
$quantity_field= str_replace('<div class="quantity">', '', $quantity);
2
Answers
You can use
preg_replace
for this!Fiddle: PHPFiddle
If you are overiding woocommerce plugin files, remove class quantity from global/quantity-input.php