Answer the question
In order to leave comments, you need to log in
How to pass value to cart?
There is an online clothing store. Now the size of the goods is transferred to the basket in this way
foreach ($arResult['PROPS']['PROP2']['VALUE'] as $key => $value):?>
<div class="inline_block_top radio">
<div class="inline_block_top text">
<span><?=$value?></span>
</div>
<input id="checkbox-<?=$value?>" <?if (!$checked): $checked = false;?>checked<?elseif(isset($_GET['razmer']) && $_GET['razmer'] == $value):?>checked<?endif;?> type="radio" value="<?=$value?>" name="prop[PROP2]">
<label for="checkbox-<?=$value?>"></label>
</div>
<?endforeach;?>
<select>
<?foreach ($arResult['PROPS']['PROP2']['VALUE'] as $key => $value){ ?>
<option value="<?=$value?>" ><?=$value?></option>
<? } ?>
</select>
Answer the question
In order to leave comments, you need to log in
location.href=this.value;wtf?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question