Checkouts - aareano/ifshop-wiki GitHub Wiki

The Checkout event class contains the following events:

  • a checkout is created
  • a checkout is updated
  • a checkout is deleted

The checkout drop is the root drop that's defined for this class. Below is an example of the tree of liquid drops available to you.

Example Usage: To access the provice (or state) of the default address of the customer to whom the checkout belongs, you would use checkout.customer.default_address.provice.

checkout
├── customer
│   ├── customer_address
│   └── customer_default_address
├── line_item
│   ├── product
│   │   ├── collection
│   │   ├── image
│   │   ├── image
│   │   └── product_option
│   └── variant
│       └── image
├── shipping_address
├── shop
│   └── collection
└── shipping_method

The tree is representative of what you can expect for the following events:

  • a checkout is created
  • a checkout is updated

The remaining checkout event has limited data availability because Shopify deletes the data immediately, before ifshop has access to it:

  • a checkout is deleted

Note: This tree is an illustrative, but not exhaustive - in theory, it goes on forever! - demonstration of the assemblage and structure of the data available to you.

Warning: The tree of liquid drops you encounter in practice will almost certainly have different dimensions than this. This is merely an example to show structure.