Magento 2 install with cli mode

Go to your root directory C:\xampp\htdocs\magento2> and run following command php bin/magento setup:install –base-url=”http://127.0.0.1/magento2/” –db-host=”localhost” –db-name=”databasename” –db-user=”databaseuser” –db-password=”databasepass” –admin-firstname=”Yourname” –admin-lastname=”Yourname” –admin-email=”borntowinanwar@gmail.com” –admin-user=”admin” –admin-password=”strongpassword” –backend-frontname=”admin”

Continue Reading

Magento 2 after install shows blank page

Please below instruction hope it will resolve. Just got to vendor/magento/framework/View/Element/Template/File/validation.php And go to line 138 lines Replace  $realPath = $this->fileDriver->getRealPath($path); foreach ($directories as $directory) { if (0 === strpos($realPath, $directory)) { return true; } } With  $realPath = $this->fileDriver->getRealPath($path); foreach ($directories as $directory) { $directory = $this->fileDriver->getRealPath($path); if (0 === strpos($realPath, $directory)) { return true; } }

Continue Reading

How many design patterns in Magento 2?

Magento has a total of 12 design patterns. These patterns are given below: Factory Pattern Singleton Pattern Model View Controller Pattern Front Controller Pattern Registry Pattern Prototype Pattern Iterator Pattern Object Pool Pattern Service Locator Pattern Lazy Loading Pattern Observer Pattern Module Pattern  

Continue Reading

Remove Advanced Search Link from header in Magento 2

Path –  Vendor_Name/Custom_Theme_Name/Magento_Theme/layout/default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”advanced-search-link” remove=”true”/> </page>

Continue Reading

How to Edit/Change/remove Magento 2 Privacy Policy Page

Path –  Vendor_Name/Custom_Theme_Name/Magento_Theme/layout/default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”footer_links” remove=”true”/> </page>

Continue Reading

Remove “help us keep magento healthy report all bugs” from footer in Magento 2

just create the following folder & file app/design/frontend/Vendor/theme/Magento_Theme/layout/default.xml add following code in default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”report.bugs” remove=”true” /> </page>

Continue Reading