2.0 Beta

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

What changed

customer-metafields-editor

Form that prefills and saves the customer's custom metafields; 2.0: once saved, the customer is read again and the form comes back 5 s after its success message.

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

Where it can go

  • Anywhere on the page.
  • Must contain form.
  • Out of place, Smootify removes it from the page: no form.

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
any name: the metafield keyText field, Text area, Select field, Radio button, Checkbox, file-inputSaves the customer metafield custom.<key>, the key being the snake_case of data-name (the name as written without it), and is prefilled from it, select and textarea included; a lone checkbox saves true checked and false unchecked; names starting with _ are not saved, and a repeated name keeps its last value. 2.0: a field sent empty (a text cleared, the last file removed from a file-input) empties its metafield (deleted: Shopify takes no empty value); a field a condition hides is left alone.

Loading

Its code loads only on pages that have customer-metafields-editor.

    ↑ ↓ to moveEnter to openEsc to close