Monday, 29 April 2019

Reorder of magento2 checkout fields like as postcode and company

Create file checkout_index_index.xml in Vendor\Module\view\frontend\layout


<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="checkout.root">
            <arguments>

Monday, 8 April 2019

Display admin user name who made order comment Magento2

1.Create file registration.php in app/code/Order/CommentsUser/registration.php

<?php
/**
 * Ansar Husain
 * Order_CommentsUser
 */
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Order_CommentsUser',
    __DIR__
);