私はさまざまな方法で試しましたが、私のカートにカスタムフィールドを追加することはできません。わかりません。私もShopifyのUIジェネレータを使用しているし、それもどちらも動作していない。ここで私は追加のコードは次のとおりです。Shopify - カスタムカートフィールドを表示できないようにしましたnote_attributes
<p class="cart-attribute__field">
<label for="your-name">Your name</label>
<textarea required class="required" id="your-name" name="attributes[Your name]">{{ cart.attributes["Your name"] }}</textarea>
</p>
は、その後、私はこれを試してみた:どちらか動作しません
<div style="width:300px; clear:both;">
<p>
<label for="delivery_date">Pick a delivery date:</label>
<input required class="required" id="delivery_date" type="text" name="attributes[delivery_date]" value="{{ cart.attributes.delivery_date }}" />
<span style="display:block" class="instructions"> We do not deliver during the weekend.</span>
</p>
</div>
、それはattributes
とは何かを持っているが、私は把握することはできません何。
誰でも?