I’ve added phone and vatNumber fields to address fields, and they’re being sent as custom fields instead of address/billing information.
I’ve added this to not show autocomplete form by default:
And I’ve added these to add phone and vatNumber fields. Phone is being set correctly, but vatNumber is not, and email goes into custom fields for some reason.
<address-fields section="top">
<fieldset class="snipcart-form__set">
<div class="snipcart-form__field">
<snipcart-label for="phone">
Tel.
</snipcart-label>
<snipcart-input required pattern="(9[1236]\d) ?(\d{3}) ?(\d{3})" name="phone">
</snipcart-input>
</div>
</fieldset>
</address-fields>
<billing section="bottom">
<fieldset class="snipcart-form__set">
<div class="snipcart-form__field">
<snipcart-label class="snipcart__font--tiny" for="vatNumber">
<p style="display: inline-block">NIF <sup style="display: inline-block;font-size: .8em;"> Necessário para
confirmar o desconto
de 30%</sup>
</p>
</snipcart-label>
<snipcart-input type="number" minlength="9" maxlength="9" name="vatNumber"></snipcart-input>
</div>
</fieldset>
</billing>