Changing the field order of the shipping address in checkout (Magento 2)

You can adjust the order of checkout fields relatively easily with a layout update. Open the file checkout_index_index.xml in your theme, or create it if it does not exist. Then insert the following code:

As you can see, you…

Testing the success page

Want to test the Magento 2 success page after making some changes there without placing many orders in your Magento 2 store? By changing the following code in vendor/magento/module-checkout/Controller/Onepage/Success.php you only have to place one order. So look for the…

Testing the success page (Magento 2)

To test changes to the Magento 2 order success page, open vendor/magento/module-checkout/Controller/Onepage/Success.php and comment out the line

. You can then reload the page as often as you like to test your changes. Remember to remove the comment once…