How to create a two-column onepage checkout
The steps to create a onepage checkout with a two-column layout are:
-
Declare a new checkout in an
etc/hyva_checkout.xmlfile in your theme or a custom module.
Note the directory isetc/hyva_checkout.xmlin a theme, too, NOTHyva_Checkout/etc/hyva_checkout.xmlas some expect. -
Declare a checkout with a name (for example
client), a label, a layout (=2columns), and a parent (=onepage). -
Flush the cache, and select the
clientcheckout in the backend Hyvä Checkout configuration. -
Create a layout XML file
hyva_checkout_client.xml(NOThyva_checkout_client_onepage.xml)
In the layout, move all components from the third column that is no longer present to one of the remaining columns.
This results in a onepage checkout with 2 columns containing all the components you require and no breadcrumbs.