nerdexam
Adobe

AD0-E724 · Question #31

A developer needs to create a new page for the storefront checkout process that displays custom terms and conditions. The page must appear as a new step in the checkout flow. Which layout file is the

The correct answer is A. 'checkout_index_index.xml'. checkout_index_index.xml is the primary layout file for the Magento checkout page because it maps directly to the CheckoutController::indexAction - the controller action that renders the main checkout page where you add custom steps, blocks, and structure. checkout_cart_index.xml

Customization

Question

A developer needs to create a new page for the storefront checkout process that displays custom terms and conditions. The page must appear as a new step in the checkout flow. Which layout file is the primary entry point for customizing the structure of the checkout page?

Options

  • A'checkout_index_index.xml'
  • B'checkout_cart_index.xml'
  • C'checkout_onepage_success.xml'
  • D'sales_order_view.xml'

How the community answered

(19 responses)
  • A
    79% (15)
  • B
    5% (1)
  • C
    11% (2)
  • D
    5% (1)

Explanation

checkout_index_index.xml is the primary layout file for the Magento checkout page because it maps directly to the CheckoutController::indexAction - the controller action that renders the main checkout page where you add custom steps, blocks, and structure. checkout_cart_index.xml controls the shopping cart page (before checkout begins), making it wrong for checkout flow customization. checkout_onepage_success.xml only handles the order confirmation/success page shown after a purchase completes. sales_order_view.xml is an admin-side layout for viewing individual orders, unrelated to the storefront checkout flow entirely.

Memory tip: Think of the layout file name as route_controller_action.xml - "checkout" is the route, "index" is the controller, and the second "index" is the action - so checkout_index_index.xml literally points to the main checkout entry action.

Topics

#checkout layout XML#layout customization#checkout flow#storefront

Community Discussion

No community discussion yet for this question.

Full AD0-E724 Practice