Home / MAGENTO 2 (page 2)

MAGENTO 2

Error when reindexing Catalog URL Rewrites in magento admin

An error occurred while saving the URL rewrite magento

Error when reindexing Catalog URL Rewrites in magento admin. Follow the following steps for the reindexing Catalog URL Rewrites in magento. Open CMD or Xampp Shell Command window. see image given below[/accordion][accordion title=” Connect with database phpmyadmin MySQL.”] command is: mysql -u root -p pres enter after asked password then …

Read More »

How to Secure Your Magento Admin to Restrict Access to Specific IP Address with HTACCESS?

How to Secure Your Magento Admin to Restrict Access to Specific IP Address with HTACCESS? Copy the code and past in .htaccess file and change the ip with you. RewriteCond %{REQUEST_URI} ^/(index.php/)?admin/ [NC] RewriteCond %{REMOTE_ADDR} !^196.196.196.196 RewriteRule ^(.*)$ http://%{HTTP_HOST}/ [R=302,L] Example: RewriteCond %{REQUEST_URI} ^/(index.php/)?youradminname/ [NC] RewriteCond %{REMOTE_ADDR} !^ change here …

Read More »

Magento: How to check if current page is homepage?

1.) // Put your homepage-only code in here. 2.) if($this->getIsHomePage()) { echo 'You are in Homepage!'; } else { echo 'You are NOT in Homepage!'; } 3.) $routeName = Mage::app()->getRequest()->getRouteName(); $identifier = Mage::getSingleton('cms/page')->getIdentifier(); if($routeName == 'cms' && $identifier == 'home') { echo 'You are in Homepage!'; } else { echo …

Read More »
0

December 10, 2016

Clear all