Answer the question
In order to leave comments, you need to log in
Minimum order quantity for bitrix?
Help me solve the problem, I don’t even know where to drip. It is required for a certain group of users to separately prescribe the minimum order quantity for each product.
That is, until the user specifies the quantity 10, for example, the product cannot be ordered or does not see the buttons
Select the quantity
<?
// Выбор количества
if ($arParams['USE_PRODUCT_QUANTITY']):
?>
<div class="qty-block" style="<?=(!$actualItem['CAN_BUY'] ? 'display: none;' : '')?>"
data-entity="quantity-block">
<div class="qty-form">
<a class="js-qty-minus qty-btn qty-minus" id="<?=$itemIds['QUANTITY_DOWN_ID']?>"
href="javascript:void(0)" rel="nofollow">
</a>
<input class="js-qty-input qty-input" id="<?=$itemIds['QUANTITY_ID']?>" type="tel"
value="<?=$price['MIN_QUANTITY']?>">
<a class="js-qty-plus qty-btn qty-plus" id="<?=$itemIds['QUANTITY_UP_ID']?>"
href="javascript:void(0)" rel="nofollow">
</a>
</div>
<div class="qty-label" id="<?=$itemIds['QUANTITY_MEASURE']?>"><?=$actualItem['ITEM_MEASURE']['TITLE']?></div>
<div class="qty-price-total" id="<?=$itemIds['PRICE_TOTAL']?>"></div>
</div>
<?endif?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question