Magento2

How to enable error reporting in Magento2

Here is the tip, how you can enable magento error reporting in magento 2 Connect FTP OR login into cpanel account and go to the following directory pub/errors find the local.xml.sample and rename to local.xml and also on magento root folder find index.php and put the display error code at the bottom error_reporting(E_ALL); ini_set(‘display_errors’, 1);

Magento2 admin account disabled error

Hello All, If you get issue something below on the Magento2 login page     Simply below query to database via phpmyadmin. Example is for reset password for admin user. UPDATE admin_user SET password = CONCAT(SHA2(‘xxxxxxxxNewPassword’, 256), ‘:xxxxxxxx:1’) WHERE username = ‘admin’; NewPassword : Replace it with your password.   Hope it will work.

Get Magento catalog image

Today  I will show you how you can get the magento catalog image via code on any page. Please use below code and you will be done!!   Mage::helper(‘catalog/image’)->init($product, ‘thumbnail’)->resize(100);

Get Categories and Its Sub Categories in Magento

Today I will show you how you can fetch magento categories and its subcategories. Use below code   <?php $_helper = Mage::helper(‘catalog/category’); $_categories = $_helper->getStoreCategories(); if (count($_categories) > 0){ foreach($_categories as $_category){ $_category = Mage::getModel(‘catalog/category’)->load($_category->getId()); $_subcategories = $_category->getChildrenCategories(); if (count($_subcategories) > 0){ echo $_category->getName(); echo $_category->getId(); echo $_category->getUrl(); foreach($_subcategories as $_subcategory){ echo $_subcategory->getName(); echo $_subcategory->getId(); …

Get Categories and Its Sub Categories in Magento Read More »

How to Remove SID (SESSION_ID) from URL in Magento 2

First of all we have know about SID (SESSION_ID) in magento2: The SID is a “session ID”. Magento uses this to track a user’s activity within the same Magento installation. Normally, Magento powers one website and one store from one installation (database). Magento could power multiple websites with multiple stores from one installation though. The SID …

How to Remove SID (SESSION_ID) from URL in Magento 2 Read More »

How to hide Discount code in Magento 2

Here is the info how you can get rid off Discount code from cart page and payment page. Add below css code and it will hide discount code from the pages. For cart page : .checkout-cart-index .cart-discount {display: none;} For payment page : .checkout-index-index .payment-option._collapsible.opc-payment-additional.discount-code { display: none; }