Unable to change layout of checkout_onepage_success?

2018-01-24 07:32:01

I have a checkout_onepage_success.xml file in the view/frontend/layout directory of my module but changing the layout attribute of the tag from layout="1column" to layout="2columns-right" does not change the layout of the page.

Other updates in the file work fine, I can add, modify and remove blocks as normal but the page layout will not change. If I remove the layout="1column" from the core module-checkout module, leaving it with no declared layout, my layout update then DOES work and the page is 2cols-right.

Attempted to solve this by ing my module after the core module-checkout but it looks like the core layout is still being processed after mine and taking precedence.

What do?

Resolved - the wasn't being applied. Needed to disable and re-enable the module.

Less nice solution is to give your module a namespace that begins with a letter that comes after M alphabetically.

create checkout_onepage_success.xml in view/frontend/lay

  • Resolved - the wasn't being applied. Needed to disable and re-enable the module.

    Less nice solution is to give your module a namespace that begins with a letter that comes after M alphabetically.

    2018-01-24 07:42:35
  • create checkout_onepage_success.xml in view/frontend/layout folder of your module and paste below code in file:

    2018-01-24 07:56:14