2.0 Beta

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

What changed

smootify:created_address

a `create-address` form saved an address

v2.0 beta
Open .md
On this page
  1. Listen
  2. Payload
  3. CustomerAddress

a create-address form saved an address Since 1.x.

Listen

window.Smootify = window.Smootify || [];
window.Smootify.push((api) => {
  api.on("created_address", (payload) => {
    // …
  });
});

Payload

{ address: CustomerAddress }

CustomerAddress

export interface CustomerAddress {
  id: string;
  formatted: string[];
  name: string | null;
  address1: string | null;
  address2: string | null;
  city: string | null;
  company: string | null;
  firstName: string | null;
  lastName: string | null;
  phoneNumber: string | null;
  countryCode: string | null;
  zip: string | null;
  zoneCode: string | null;
}

    ↑ ↓ to moveEnter to openEsc to close