How to retrieve quantity input field by id in woocommerce

Question

I want to retrieve quantity input field for the product having 95 id. trying this function but it is not
working. it adds only one product in cart even after selecting more than one in the input field.

<div class="quantity">
<label>QTY</label>
<?php woocommerce_quantity_input(array(
'id'=>95
)); ?>  
</div>
0
Harsh Gajipara 2 years 2020-10-26T04:10:24-05:00 0 Answers 14 views 0

Leave an answer

Browse
Browse