What is PWD in Magento?

In the Magento/Adobe Commerce ecosystem, PWD usually refers to “Password” (for customer accounts or admin users). If you’re asking about Magento PWA Studio (sometimes people write it as PWD by mistake) → that’s Magento’s Progressive Web App framework for building headless storefronts. So, depending on your context: PWD = Password (login/security) PWA Studio = New… Continue reading What is PWD in Magento?

How to display custom checkout field value in Admin Sales Order?

Adding Template File sales_order_view.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”admin-2columns-left” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”>   <body>         <referenceBlock name=”order_info”>       <block class=”LearningRewriteSalesBlockAdminhtmlOrderViewCustom” name=”sales_order_view_custom” template=”order/view/custom.phtml” />     </referenceBlock>   </body> </page> Other Method Learning/RewriteSales/Block/Adminhtml/Order/View/Custom.php <?php namespace LearningRewriteSalesBlockAdminhtmlOrderView; class Custom extends MagentoBackendBlockTemplate { } Learning/RewriteSales/view/adminhtml/layout/sales_order_view.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”admin-2columns-left” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”>   <body>         <referenceBlock name=”order_info”>       <block class=”LearningRewriteSalesBlockAdminhtmlOrderViewCustom” name=”sales_order_view_custom” template=”order/view/custom.phtml” />     </referenceBlock>   </body> </page> Learning/RewriteSales/view/adminhtml/templates/order/view/custom.phtml <h1>Hi, I am… Continue reading How to display custom checkout field value in Admin Sales Order?

Gpay plugin for Magento 2

The Google Pay plugin is built in collaboration with Unbound Commerce, is free to use, and integrates with popular payment service providers including Adyen, BlueSnap, Braintree, FirstData – Payeezy & Ucom, Moneris, Stripe, and Vantiv. Installation The Google Pay plugin can be installed from the Magento Marketplace using this link or by searching the Magento… Continue reading Gpay plugin for Magento 2

magento 2 restrict phone number field in admin panel

You want to restrict phone number field and it should accept only 10 digits number then need to create custom validator addRule. I have created custom module with custom validator rule for make custom Phone Number validation. File path: magento/app/code/Vendor/PhonenumverValidation/registration.php <?php use MagentoFrameworkComponentComponentRegistrar; ComponentRegistrar::register(ComponentRegistrar::MODULE, ‘Vendor_PhonenumverValidation’, __DIR__); File path: magento/app/code/Vendor/PhonenumverValidation/etc/module.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module… Continue reading magento 2 restrict phone number field in admin panel

How to add custom tab in Customer Account Sidebar Magento 2

First of all, you will need to create customer_account.xml file here in your custom module.. app/code/SK/CustomerAccountTab/view/frontend/layout/customer_account.xml Content of the File <?xml version=”1.0″?> <!– /**  *  * @package  SKCustomerAccountTab  * @author  Kishan Savaliya <kishansavaliyakb@gmail.com>  */ –> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”>   <body>     <referenceBlock name=”customer_account_navigation”>       <block class=”MagentoFrameworkViewElementHtmlLinkCurrent” name=”customer-account-navigation-new-tab”>         <arguments>           <argument name=”path” xsi:type=”string”>sk_route/front/index</argument>           <argument name=”label” xsi:type=”string”>Custom tab (SK)</argument>         </arguments>       </block>     </referenceBlock>   </body>… Continue reading How to add custom tab in Customer Account Sidebar Magento 2

Magento PWA Setting Storefront

Setup a storefront project using yarn In your terminal, navigate to the directory where you want to install your storefront project and run yarn create @magento/pwa Select a directory for the installation cd pwa-studio-fundamentals Adding the Custom hostname and SSL Cert. yarn buildpack create-custom-origin ./ NOTE: If you encounter any errors while creating a custom… Continue reading Magento PWA Setting Storefront

Magento 2: upload file in frontend

Add menu in Dashboard customer_account.xml in this route_nam_controller_name_action_name.xml layout file call this phtml file ADD this HTML to your .phml file which one used for file upload now user select file and upload here and when user submits button click then ACTION PATH controller call.put this code into your this controller file.

SQL Issue on the server

Job for mysqld.service failed See “systemctl status mysqld.service” This message came after deploying the mysql service and we will not be able to run the service. use the terminal to route to the following commands This will resolve the issues on the server and will be able to run the MySQL services on the local… Continue reading SQL Issue on the server

Add Custom Currency to Magento 2

As we all know Magento 2 does not support CryptoCurrency yet, so here we are going to learn how we can add a new currency. The very first step to start with is to modify your module’s registration.php file Here is the code for the CurrencyBundle.php file, keep this fine in app/code/Vendor/Module/Override/CurrencyBundle.php Now we will… Continue reading Add Custom Currency to Magento 2