Answer the question
In order to leave comments, you need to log in
How to set value to all text fields?
Good afternoon. On the category page it is possible to select the quantity of the added product prntscr.com/e36hea there is also a simple filter for these products. Filter code on this page
<ul>
<li><label><input type="checkbox" name="hide_prices" value="1" <?php if($hide_prices) { ?> checked <?php } ?> />Скрыть цены</label></li>
<li><label><input type="checkbox" name="hide_header" value="1" <?php if($hide_header) { ?> checked <?php } ?> />Скрыть шапку сайта и Контакты</label></li>
<li><label><input type="checkbox" name="hide_menu_items" value="1" <?php if($hide_menu_items) { ?> checked <?php } ?> />Скрыть Оптовикам, Оплата и доставка, Контакты</label></li>
<li><button>Применить</button></li>
</ul>
<input type="text" value="<?php echo $product['minimum']; ?>" size="2" class="quantity" id="quantity_tovarr" name="quantity_<?php echo $product['product_id']; ?>">
Буду очень признателен за любую помощь.
Answer the question
In order to leave comments, you need to log in
in file /catalog/view/javascript/common.js
right after $(document).ready(function() {
paste
$( "#quantity_tovarr" ).keyup(function() {
$('.quantity').val($(this).val());
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question