Disable Native Contact us page Magento 2.

You can stop/disable the contact us page in Magento 2 using store configuration settings.

By default, the Contact page is enabled and you can check the contact us page using URL, <SITE_URL>/contact

If you want to modify or change the contact us page with your custom contact page, you can disable the Contact page using the below settings.

Contact Us Page Scope is Store Level, You can Enable the contact us page at one store and disable it on another store based on your settings.

Continue reading “Disable Native Contact us page Magento 2.”

How to override cart/item/renderer/actions/edit.phtml template in Magento 2?

You can override cart/item/renderer/actions/edit.phtml file using layout XML way or directly add template file to the theme level under Magento_Checkout theme module.

  • Theme level Override,
app/design/frontend/<ThemePackage>/themename/Magento_Checkout/templates/cart/item/renderer/actions/edit.phtml

edit.phtml file used to display edit link for every cart item within the last column in cart table. Continue reading “How to override cart/item/renderer/actions/edit.phtml template in Magento 2?”

How to override login.phtml template in Magento 2?

You can override login.phtml file using layout XML way or directly add template file to the theme level under Magento_Customer theme module.

login.phtml file used to display login form in Frontend area.

Theme Level Override,

app/design/frontend/<ThemePackage>/themename/Magento_Customer/templates/form/login.phtml

Module Level Override,

You can see a base definition for define login.phtml file at customer module, Magento_Customer/view/frontend/layout/customer_account_login.xml location. Continue reading “How to override login.phtml template in Magento 2?”