2.0 Beta

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

What changed

order-return

2.0: form where the customer asks to return delivered lines of its order (Shopify's orderRequestReturn: the return reaches the admin as requested, the merchant approves it). Read once the order is painted: a request-line-item row per returnable line, with what can be returned; the form sends the rows asked for, then reads the order again. The form hides when nothing can be returned

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

Where it can go

What it requires

Fields in the form

Each field’s name attribute tells Smootify what the field holds.

NameFieldWhat it does
quantity (in each request-line-item)input type="number" input, selectHow many of the line are asked for, kept between 0 and what the line allows (max written; a select gets its options, from 1 with a checkbox, else 0).
a checkbox (in each request-line-item, any name)input type="checkbox"The row is asked for only while ticked: its quantity field, else all of the line.
reason (in each request-line-item)selectRequired (, when it offers reasons: Shopify refuses a return line without one, so a row asked for without it shows “Choose a reason for <title>” in [form-fail] and nothing is sent). Filled with the return reasons Shopify suggests for the line’s product category, after the site’s first option when its value is empty (Choose a reason), the visitor’s choice kept when the order is read again; hidden and disabled when Shopify suggests none.
note (in each request-line-item)textarea, input type="text" inputThe customer’s note on the line, up to 300 characters.

Attributes on the element

  • It reads is-requestable, has-request, loaded.

Attributes inside it

GroupAttribute nameValues
Return requestorder-return5
Return and removal fieldsname3

Loading

Its code loads only on pages that have order-return.

    ↑ ↓ to moveEnter to openEsc to close