Order Transactions - aareano/ifshop-wiki GitHub Wiki
The Order Transaction event class contains the following events:
- an order transaction is created
The transaction
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 gateway of the first transaction of the order, you would use transaction.gateway
.
order
├── billing_address
├── customer
│ ├── customer_address
│ └── customer_default_address
├── discount
├── fulfillment
│ ├── fulfillment_event
│ └── fulfillment_line_item
│ └── line_item
│ ├── product
│ │ ├── collection
│ │ ├── image
│ │ ├── image
│ │ └── product_option
│ └── variant
│ └── image
├── fulfillment
│ └── fulfillment_line_item
│ └── line_item
│ ├── product
│ │ ├── collection
│ │ ├── image
│ │ ├── image
│ │ └── product_option
│ └── variant
│ └── image
├── fulfillment
│ └── fulfillment_line_item
│ └── line_item
│ ├── product
│ │ ├── collection
│ │ ├── image
│ │ ├── product_option
│ │ └── product_option
│ └── variant
│ └── image
├── fulfillment_event
├── line_item
│ ├── product
│ │ ├── collection
│ │ ├── image
│ │ ├── product_option
│ │ └── product_option
│ └── variant
│ ├── image
├── tax_line
├── transaction
│ ├── payment_details
│ └── receipt
├── transaction
│ └── receipt
├── shipping_address
├── shipping_method
└── shop
└── collection
The tree is representative of what you can expect for the following events:
- an order transaction is created
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.