2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

edit-address

Form that edits the address of its row, prefilled by the address list.

v2.0 beta
Open .md
On this page
  1. Where it can go
  2. What it requires
  3. Fields in the form
  4. Attributes inside it
  5. Loading

Where it can go

  • Inside customer-address.
  • Must contain form.
  • Out of place, Smootify removes it from the page: no form or selects; outside a row nothing is prefilled. 2.0: without the country select it is a “Set as default” form (a hidden defaultAddress input with value=“true”, a submit): it needs no selects and sends only the default, the address stays as it is.

What it requires

Fields in the form

Each field’s Name setting in Webflow tells Smootify what the field holds. It is a setting of the field, not a custom attribute.

NameFieldWhat it does
countryCodeSelect fieldRequired (removed without it). The country, made required (1.x and the first 2.0 builds: territoryCode, which Shopify deprecated; the debugger flags it); Smootify fills the options with the countries the shop ships to, keeping an option without a value as the placeholder.
zoneCodeSelect fieldRequired (removed without it). The province or state; Smootify replaces every option with the zones of the chosen country, the select is required only when the country has zones, and the host has no-zone until it does.
firstName, lastName, company, address1, address2, city, zipText fieldThe address lines; in edit-address every field named like a key of the address is prefilled.
phoneNumberText fieldThe phone, sent without spaces.
defaultAddressCheckboxChecked: the address becomes the default; unchecked: the default stays.
any other name—Sent to Shopify, which refuses the address: leave it out.
idhiddenThe address updated.

Attributes inside it

GroupAttribute nameValues
Address form (condition)address-condition1

Loading

Its code loads only on pages that have edit-address.

    ↑ ↓ to moveEnter to openEsc to close