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

  1. Open the Product Menu (Product Menu), and navigate to Site BuilderPages.

  2. To add a child page, click Add (Add) next to the shop page and click Add Page.

  3. Select the master page template.

  4. Enter the name as Checkout and click Add. This opens the new page in edit mode.

Customizing the Checkout Page

  1. Drag and drop a container on the page. Change the Container Width to Fixed Width.

  2. Go to the Styles tab and in the Spacing settings, choose Spacer 5 for the margin on the top of the element.

  3. Drag and drop a Heading fragment inside the fixed width container.

  4. Set the header title to Check Out.

  5. Go to the Styles tab and in the Spacing settings, choose Spacer 4 for the margin at the bottom of the element.

  6. In the Text settings, set the text alignment to center.

  7. 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.

  1. Drag and drop a Coupon Code widget below the checkout title.

  2. 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.

  3. Choose Spacer 4 for the margin at the bottom of the element.

  4. Click Publish.

Customers can enter a coupon code and checkout their orders.

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.

  1. Open the Product Menu (Product Menu) and navigate to DesignPage Templates.

  2. Select the master page template.

  3. Select the Grid in the header and change the Number of Modules to 4.

  4. Resize the grid as shown in the image below.

    Resize the header to add the mini cart fragment.

    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.

  5. Drag and drop the Mini Cart fragment inside the last module of the grid.

  6. Go to the Styles tab and in the Spacing settings, enter 3.5rem for the margin at the bottom of the element.

  7. Click Publish Master.

Next: Creating a Discount and Enabling Guest Checkout

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy