We sacrifice by not doing any other technology, so that you get the best of Magento.

We sacrifice by not doing any other technology, so that you get the best of Magento.

    • Overriding Helper class in Magento 1.9.X

      Let’s try overriding Mage_Checkout_Helper_Cart helper class in this article. Step 1 - Create a module in your local folder app/local/Magemonkeys/Checkout Step 2 - Register your module in etc/modules directory by creating Magemonkeys_Checkout.xml file with the following content: <?xml version="1.0"?> <config> <modules> <Magemonkeys_Checkout> <active>true</active> <codePool>local</codePool>…

      READ MORE
    • Magento 1.x Resolve error on PHP 7

      Magento 1.9.3 doesn't run with PHP 7, it will show error like below: Fatal error: Uncaught Error: Function name must be a string in appcodecoreMageCoreModelLayout.php Find the below line in app/code/core/Mage/Core/Model/Layout.php file (line: 555) $out .= $this->getBlock($callback[0])->$callback[1](); And Replace it with below line: $out…

      READ MORE
    • Magento 2 Create admin user using command

      You can create a new admin user through command by using below command. The admin:user:create command is used to create new admin user. php bin/magento admin:user:create --admin-user='your-new-username' --admin-password='new-username-password' --admin-email='new-user-email' --admin-firstname='newuser-firstname' --admin-lastname='newuser-lastname' You will give Response like below, Created Magento administrator user named your-new-username with green line.

      READ MORE
    • How to display types of messages using ManagerInterface Magento 2

      Magento 2 use show Success and Error Message Using Interface MagentoFrameworkMessageManagerInterface. You can set success message Using addSuccessMessage( ) and set error message using addErrorMessage( )function. You can directly fetch Object of MagentoFrameworkMessageManagerInterface in controller file but for other files like Plugin, Observer, Model, Block or Helper; you need to instantiate an…

      READ MORE
    • How to get CMS Block Collection in Magento 2

      You can get all the CMS Static Blocks collection in Magento 2 by using interface, MagentoCmsApiBlockRepositoryInterface. MagentoCmsApiBlockRepositoryInterface is used for getting CMS Static Blocks related data in Magento 2. You need to instantiate MagentoCmsApiBlockRepositoryInterface in __construct() method of Class <?php namespace VendorNameModuleNameBlock; class Filename extends MagentoFrameworkViewElementTemplate { public function…

      READ MORE
    • Add Custom Tab on Product Page in Magento 2

      Product detail is the most important page which displays all the details of the product. Without proper details, a customer cannot make up their mind to buy the product. It’s crucial that you add the necessary details. So sometimes we need to add an extra tab on…

      READ MORE
    • Magento 2 Change Toolbar Limiter Dropdown To Links

      Have you ever thought what will you do as developer when you will need to change the product toolbar limiter dropdown into the links? Well, here I'm going to guide you about it. All you need to do is to replace below…

      READ MORE
    • Magento 2: Display Category Image In Navigation Menu

      Let's say I have to show category images to navigation menu. Magento doesn’t take a use of any kind of template to draw the whole menu, but a function which will retrieve all the categories & create li/ul tree. In Magento 2.1.X…

      READ MORE
    • Overriding Model in Magento 1.9.X

      The list of files required for the Overriding model through a new module: app/etc/modules/Magemonkeys_Catalog.xml app/code/local/Magemonkeys/Catalog/etc/config.xml app/code/local/Magemonkeys/Catalog/Model/Category.php Creating Files and Folders: Custom Module What we need to do is to create a module file. Make a file - "app/etc/modules/Magemonkeys_Catalog.xml" Then, add the below…

      READ MORE
    • Working with registry objects in Magento 2

      Besides the improvements, Magento 2 still has the old features like allow you to have the registry to register global variable using stable registry method. However, instead of Mage::registry, in Magento 2, it has become MagentoFrameworkRegistry. There are two main methods to set registry…

      READ MORE
    Recent Articles
    Get a Free Quote