Shopify でストアに登録する顧客に複数のカスタム タグを割り当てようとしています。
これは私がこれまでに持っているものですが、最初のタグに2番目のタグを割り当てるため、両方を割り当てて保持する方法を見つける必要があります。
{% layout settings.customer_layout %}
<div id="customer-accounts" class="content clearfix">
<!-- Create Customer -->
<div id="customer-register">
<div class="page-header">
<h1>Create Account</h1>
</div>
{% form 'create_customer' %}
{{ form.errors | default_errors }}
<div id="school" class="clearfix form-row">
<label for="school">School</label>
<select name="customer[tags]" id="school">
<option value="default" selected="selected">Choose your school</option>
<option value="syracuse">Syracuse</option>
<option value="cornell">Cornell</option>
<option value="Miami">UMiami</option>
</select>
</div>
<div id="fraternity" class="clearfix form-row">
<label for="fraternity">Fraternity</label>
<select name="customer[tags]" id="fraternity">
<option value="default" selected="selected">Choose your fraternity</option>
<option value="sigma_chi">Sigma Chi</option>
<option value="sigma_alpha_mu">Sigma Alpha Mu</option>
<option value="delta_tau_delta">Delta Tau Delta</option>
</select>
</div>
<div id="first_name" class="clearfix form-row">
<label for="first_name" class="login">First Name</label>
<input type="text" value="{{ form.first_name }}" name="customer[first_name]" id="first_name" class="large" size="30" />
</div>
<div id="last_name" class="clearfix form-row">
<label for="last_name" class="login">Last Name</label>
<input type="text" value="{{ form.last_name }}" name="customer[last_name]" id="last_name" class="large{% if form.errors contains 'last_name' %} error{% endif %}" size="30" />
</div>
<div id="email" class="clearfix form-row">
<label for="email" class="login">Email Address</label>
<input type="email" value="{{ form.email }}" name="customer[email]" id="email" class="large{% if form.errors contains 'email' %} error{% endif %}" size="30" />
</div>
<div id="password" class="clearfix form-row">
<label for="password" class="login">Password</label>
<input type="password" value="" name="customer[password]" id="password" class="large password{% if form.errors contains 'password' %} error{% endif %}" size="30" />
</div>
<div class="action_bottom">
<input class="btn" type="submit" value="Create" />
</div>
{% endform %}