Magento

  1. How to use ACL and _isAllowed in Magento 2

    I found an interesting difference in Magento 2 as compared to Magento 1 with ACL.

    We no longer need to define our own private function _isAllowed().  They now have a const that we can use, and let the abstract class take care of defining the _isAllowed.

    To reference here is some sample code:

    Read more »
  2. Changing the Order number and Invoice number starting sequence for Magento 2

    Recently I needed to update a Magento 2 store to start Order numbers and Invoice numbers to specific numbers. Its pretty easy, you just need access to the database and run these commands:

    Read more »
  3. Demystifying Magento Disable Modules Output

    There is a common mis-conception that the Magento Admin functionality labled "Disable Modules Output" will disable a module.  This actually only prevents what the module is supposed to push to the browser from occuring and instead pushes an empty string.

    For example, here in Magento 1.x is some code from the Core that may help

    Read more »
  4. Magento Use flat catalog category and Use flat catalog product

    Turning on Magento Enable Flat Catalog will certainly help the users experience on the Frontend.  This feature will only show marginal improvements if your categories are very limited and your products are limited.  The better performance is gained when there are dozens of categories and several hundred products.  For smaller sites you may actually see a perforance decrease.

    So, if you have enough categories and / or enough products here is how to turn on these options.

    Magento 1.x Click on System - > Configuration

    Read more »
  5. Magento Caches, flushing them and what they mean

    You may be wondering, why is there two different buttons and CLI actions for cache management: Flush Magento Cache and Flush Cache Storage.
    For Magento 1.x

    Read more »
  6. Magento 2 save functionality

    Magento 2, has carried over some of the basic workflow as far as saving to the database is concerned.  It was comforting to look at the Abstract class for the Database and recognize the save function.

     

    Read more »
  7. How Magento 2 uses addFieldToFilter and addExpressionFieldToSelect

    I was digging around deep inside Magento 2, and found this little nugget of information

    vendor/magento/framework/DB/MapperInterface.php

    Read more »
  8. Magento 2 on Ubuntu PHP 7 modules needed for Enterprise Edition

    Here is a list of php 7 modules needed to install Magento 2 Enterprise Edition

    Read more »
  9. Magento 2 New Website setup using CLI

    When creating a new website, using the GUI is not always preferred.  In fact, using the CLI or command line interface is much faster.

    After you log into your server and go to the document root of the Magento installation run this command:

    Read more »
  10. How to create a customer attribute programmatically in Magento 2

    One reason you may need to create a customer attribute using code is if you only want it on the Admin customer edit page.  Sometimes you have backend systems that need customer attributes that are not useful in the frontend.

    Here is how you do it using UpgradeData.

    Read more »
Page
Russell Albin - Omaha, Nebraska Magento Developer Magento Developer Plus Magento Solutions Specialist Magento Front End Developer https://www.linkedin.com/in/russellalbin