Creating a Checkout Page
Before you can check out and submit an order, you must have a checkout page. This is also necessary for the mini cart fragment to work correctly.
Creating a New Page
-
Open the Product Menu (), and navigate to Site Builder → Pages.
-
To add a child page, click Add () next to the shop page and click Add Page.
-
Select the master page template.
-
Enter the name as
Checkout
and click Add. This opens the new page in edit mode.
Customizing the Checkout Page
-
Drag and drop a container on the page. Change the Container Width to Fixed Width.
-
Go to the Styles tab and in the Spacing settings, choose Spacer 5 for the margin on the top of the element.
-
Drag and drop a Heading fragment inside the fixed width container.
-
Set the header title to Check Out.
-
Go to the Styles tab and in the Spacing settings, choose Spacer 4 for the margin at the bottom of the element.
-
In the Text settings, set the text alignment to center.
-
Drag and drop the Checkout widget inside the fixed width container.
The checkout page is now ready to use.
Adding the Coupon Code Widget
Next, you must add the coupon code widget to the Checkout page so that customers can enter discount codes during checkout.
-
Drag and drop a Coupon Code widget below the checkout title.
-
Go to the Styles tab and in the Spacing settings, choose Spacer 4 for the padding on the top, left, right, and bottom of the element.
-
Choose Spacer 4 for the margin at the bottom of the element.
-
Click Publish.
Adding the Mini Cart Fragment to the Header
Once you have created the Orders page and Checkout page, you can add the mini cart fragment to the page header. The mini cart fragment requires you to have these pages to work correctly.
-
Open the Product Menu () and navigate to Design → Page Templates.
-
Select the master page template.
-
Select the Grid in the header and change the Number of Modules to 4.
-
Resize the grid as shown in the image below.
The module for the logo and the nav links should be the same size as before. The search module is one size less to accommodate the mini cart fragment.
-
Drag and drop the Mini Cart fragment inside the last module of the grid.
-
Go to the Styles tab and in the Spacing settings, enter
3.5rem
for the margin at the bottom of the element. -
Click Publish Master.