{% assign type_bonbon = "Sans sucre, Gélifié, Guimauve, Nougat, Acide, Doux" | split : ", " %}
<section class="page__content">
{% capture contact_form %}
<div class="contact">
{% form 'contact', class: 'contact__form' %}
<div class="form__control">
<label class = "form__label" for="contact__type_bonbon">Types de bonbons</label>
{% for type in type_bonbon %}
<div class = "checkbox">
<input type="checkbox" id="contact__type_bonbon" name="contact[type]" value="{{type_bonbon}}">{{type}}
</div>
{% endfor %}
</div>
{% endform %}
</div>
{% endcapture %}
</section>
大家好,我正在努力获取复选框内的每个选中值。现在我只得到我在 PHP 中知道的最后一个检查值,我们将使用 GET 方法将“检查”方法放入每个检查的复选框,但是,我不知道如何在 shopify 中进行。
再次感谢你
斯蒂芬大帝
胡子哥哥
随时随地看视频慕课网APP
相关分类