Order Placed
📢 Use this project, contribute to it or open issues to help evolve it using Store Discussion.
Order Placed
Configuration
The order-placed
app comes already installed on all stores and with it, it's possible to build your own page with the blocks exported by the app.
After defining a order-placed
block inside your store/blocks
directory or in your blocks.json
file, the page can be constructed with blocks and customized with css handles.
Note: this is the default order-placed
layout implementation.
Make sure you have the Order Placed page defined in your theme:
Blocks
order-placed
order-placed
Main block, responsible for rendering the whole order placed page. It accepts the following blocks:
op-section
op-section
Splits your page into separate and semantic sections.
Composition: Accepts an array of any kind of children blocks.
Props:
Prop name | Type | Description | Default value |
---|---|---|---|
|
| Remove the bottom border of the section |
|
|
| Margin space below the section |
|
|
| Padding space below the section |
|
|
| Width of the section |
|
|
| Name of the section. Use it to have custom css handles for it. |
|
CSS Handles:
CSS Handles | Description |
---|---|
| All section blocks |
| Section named |
op-header
op-header
Defines the header content of the page.
Composition: Accepts an array of any kind of children blocks.
Props: none.
CSS Handles:
CSS Handles | Description |
---|---|
| The page header |
op-footer
op-footer
Defines the footer content of the page.
Composition: Accepts an array of any kind of children blocks.
Props: none.
CSS Handles:
CSS Handles | Description |
---|---|
| The page footer |
op-confirmation-icon
op-confirmation-icon
Renders the confirmation icon.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Icon wrapper |
Default appearance |
---|
op-confirmation-title
op-confirmation-title
Renders the confirmation title.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Confirmation title |
Default appearance |
---|
op-confirmation-message
op-confirmation-message
Renders the confirmation message, containing the clients email.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Confirmation message |
Default appearance |
---|
op-print-button
op-print-button
Renders a button that triggers a full page print.
Composition: none.
Props: none.
CSS Handles:: none.
Default appearance |
---|
op-notices
op-notices
Renders a list of important informations relevant to the currently placed order. The messages may vary according to the type of order.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| List |
| Each list |
Default appearance |
---|
op-summary-section
op-summary-section
If a placed order is split between delivery and pickup, renders a summary of all pickup and delivery packages with informations such as number of items, packages, pickup/delivery address and pickup/delivery SLA.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Summary whole section |
| Row wrapper of both summary boxes |
| Column wrapper of each summary box |
| Wrapper of the pickup address |
| Surrounding box of the summary |
| Surrounding box of the delivery summary |
| Surrounding box of the pickup summary |
| Wrapper of the whole content of the box |
| Wrapper of the number of items and packages |
| Wrapper of the shipping SLA information |
| Box |
Default appearance |
---|
op-bank-invoice-section
op-bank-invoice-section
Renders the bank invoice section if payment method chosen was bank invoice.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Bank invoice whole section |
| Wrapper of the barcode number and copy button |
| Barcode number element |
| Wrapper of the copy button |
| Wrapper of the bank invoice iframe |
| Background of the bank invoice iframe |
| Embed of the bank invoice PDF |
Default appearance |
---|
op-order
op-order
Defines an order context to be able to render its meta information and packages. Must be used to display order data.
Composition: Accepts an array of any kind of children blocks.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Wrapper of an order meta information and packages |
op-order-number
op-order-number
Renders the order id number. Must be placed inside an op-order
block.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Order number |
Default appearance |
---|
op-order-datetime
op-order-datetime
Renders the date and time an order was placed. Must be placed inside an op-order
block.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Order date and time |
Default appearance |
---|
op-order-seller
op-order-seller
Renders the seller of an order. Must be placed inside an op-order
block.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Seller phrase |
| Seller name |
Default appearance |
---|
op-order-split-notice
op-order-split-notice
Renders a message with the number of packages of an order if the order was split in more than one package. Must be placed inside an op-order
block.
Composition: none.
Props: none.
CSS Handles:
CSS Handle | Description |
---|---|
| Wrapper of the message element |
Default appearance |
---|
op-order-customer
op-order-customer
Renders the customer information. Must be placed inside an op-order
block.
Composition: none.
Props: none.
CSS Handles: none.
Default appearance |
---|
op-order-options
op-order-options
Renders the customer information. Must be placed inside an op-order
block.
Composition: none.
Props:
Prop name | Type | Description | Default value |
---|---|---|---|
|
| Make the options wrapper take full horizontal space |
|
|
| The path to redirect a user to their profile page (rendered by the |
|
CSS Handles:
CSS Handles | Description |
---|---|
| Wrapper of the option buttons |
Default appearance |
---|
op-order-payment
op-order-payment
Renders the customer information. Must be placed inside an op-order
block.
Composition: none.
CSS Handles:
CSS Handles | Description |
---|---|
| Wrapper of the payment methods list |
| Wrapper of each payment method item |
Default appearance |
---|
op-order-delivery-packages
op-order-delivery-packages
Renders an order delivery packages information and product list. Must be placed inside an op-order
block.
Composition: none.
CSS Handles:
CSS Handles | Description |
---|---|
| All package sections |
| The delivery package section |
| Column of header of a package section |
| Header of a package section |
| Header of the delivery package section |
| Delivery estimate |
| Wrapper of the package shipping address |
| Wrapper of the address title |
| Wrapper of the delivery title |
| Product list |
| Product list |
| Wrapper of a single product |
| Column of a product's image |
| Wrapper of a product's image |
| Column of a product's information |
| Product's |
| Product's measurement unit |
| Product's quantity |
| Product's price |
| Wrapper for a product's attachment |
| Header of an attachment |
| Title of a attachment |
| Wrapper of the toggle button of an attachment |
| Button for toggling the attachment's accordion |
| Attachment's toggle label |
| Attachment's content wrapper |
| Each attachment's content paragraph |
Default appearance |
---|
op-order-pickup-packages
op-order-pickup-packages
Renders an order pickup packages information and product list. Must be placed inside an op-order
block.
Composition: none.
CSS Handles:
Note: Include the same CSS handles as op-order-delivery-packages
CSS Handles | Description |
---|---|
| All package sections |
| The pickup package section |
| Wrapper of a pickup package's information |
| Package's pickup receiver information container |
| Name of the package's pickup receiver |
| Wrapper of additional information about a pickup package |
Default appearance |
---|
op-order-total
op-order-total
Renders an order delivery packages information and product list. Must be placed inside an op-order
block.
Composition: none.
CSS Handles:
CSS Handles | Description |
---|---|
| Wrapper of the total price list of an order |
| An order's total list |
| An order's total item |
| Label of a price item |
| Value of a price item |
Default appearance |
---|
API
The order-placed
app exports two hooks to allow customization using the current order data: useOrderGroup
and useOrder
.
useOrderGroup
: used to get the data of the current order group. An order group is the collection of all orders created by an users's purchase.
useOrder
: used to get the data of the current order being accessed in the order loop.
Customization
In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS Handles for store customization.
CSS Handles |
---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Contributing
Check it out how to contribute with this project.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Last updated