How to?

  1. How to Enable Template Path Hints in Magento 2

    To define a .php block class or a .phtml template that corresponds to a specific page area on your Magento 2 store you can use Template Path Hints.

    Magento 2 Template Path Hilts

    Read more »
  2. Magento 2.3 - TinyMCE 4 Toolbar / Text Color Tool Missing

    In Magento 2.3 and greater, Magento team has changed WYSIWYG editor, instead of TinyMCE 3 Magento started use TinyMCE 4.

    On the picture below, you can see Magento 2.0-2.2 TinyMCE 3  editor:

    TinyMCE 3 Magento 2 Editor

    Default Magento TinyMCE 4 editor does not include a lot of tools for example text color or text background and this can be inconvenient for the content manager.

    Magento 2 TinyMCE 4

    Read more »
  3. Magento 2 Scroll To Top - Free Solution

    When a visitor scrolls the web-page down It is convenient to display a button that will allow easily, by a one-click move customer back to the top of the page. 

    (button example)

    To enable such a button on your website please follow these simple steps:

    1. Create default.xml layout file in your theme directory:

    /app/design/frontend/ThemeVendor/ThemeName/Magento_Theme/layout/default.xml
    Read more »
  4. Magento 2 XML Sitemap Configuration

    To configure the XML sitemap in Magento 2 please go to Marketing > Seo & Search > Site Map. Choose an existing sitemap to edit or if you don't have any XML sitemap yet press the Add Sitemap button.

    Magento 2 XML Sitemap Configuration

    Read more »
  5. How To Move Magefan Blog Data From One Database To Another

    If for some reason you need to copy blog data from one database (DB1) to another (DB2), please follow these steps:

    1. Make sure that Magento 2 instance that uses DB2 has the same blog extension version as one that uses DB1. If not please upldate Magento 2 blog module on one of them.
    2. Create a backup of magefan_blog_* tables in DB2.
    3. Remove all magefan_blog_* tables from DB2.
    4. Make export (dump) of all magefan_blog_* tables from DB1
    5. Import dump to DB2.

    Using this instruction you'll easily migrate ALL blog data from DB1 to DB2. For database manipulations you can use phpMyAdmin, Adminer.

    Read more »
  6. How to install Facebook PHP SDK on Magento 2

    The easiest way to install Facebook PHP SDK on Magento 2 is to use the composer. Run this CLI command, in Magento 2 folder to install it:

    composer require facebook/graph-sdk 

    If for some reason you cannot use the composer, then:

    1. Download SDK version you need using the link  https://github.com/facebook/php-graph-sdk/releases.

    2. Unzip archive.

    Read more »
  7. Changing locale of Magneto 2 admin panel

    In order to change the locale of Magento 2 Admin Panel, you need to click on your user icon in the upper right corner and go to Account Settings.

    Magento 2 Admin User Manu

    Then, find in the Account Information section Interface Locale select box, where choose the language you need.

    Read more »
  8. Translate Magento 2 using Translate Inline Tool

    If you need to translate some text in Magento 2 you can use the Magento Inline Translate functionality.

    In order to enable it, your Magento needs to be in the default or developer mode. Then you need to go to Admin Panel > Stores > Settings > Configuration > Advanced > Developer > Translate Inline.

    Magento 2 Developer Configuration

    Read more »
  9. How To Reindex Magento 2 Using CLI

    To reindex Magneto 2 using CLI (Command Line Interface) please navigate to your Magento folder in a terminal and use command:

    php bin/magento indexer:reindex

    It will reindex all indexes. Here is an example of the success reindex execution:

    Design Config Grid index has been rebuilt successfully in 00:00:00
    Customer Grid index has been rebuilt successfully in 00:00:00
    Category Products index has been rebuilt successfully in 00:00:01
    Product Categories index has been rebuilt successfully in 00:00:00
    Catalog Rule Product index has been rebuilt successfully in 00:00:01
    Product EAV index has been rebuilt successfully in 00:00:02
    Stock index has been rebuilt successfully in 00:00:00
    Product Price index has been rebuilt successfully in 00:00:01
    Catalog Product Rule index has been rebuilt successfully in 00:00:00
    Catalog Search index has been rebuilt successfully in 00:00:02

    Read more »
  10. How To Upgrade From Megnor Blog to Magefan Blog for Magento 2?

    Megnor Blog is a distribution of Magefan Blog. If you use Megnor Blog extension you might want to replace it with the latest version of Magefan Magento 2 blog extension to get new features, security improvements, and bug fixes. The changelog can be found on our website.

    To replace Megnor_Blog with Magefan_Blog, please follow the steps below:

    1. Make a full backup of your Magento 2 files and Data Base.

    2. Rename all Data Base tables that start with 'megnor_blog_...' to 'magefan_blog_...'. E.g. rename "megnor_blog_post" table to "megefan_blog_post". You can use PhpMyAdmin for this purpose.

    3. Rename the folder

    app/design/frontend/ThemeVendor/theme_name/Megnor_Blog 

    to

    app/design/frontend/ThemeVendor/theme_name/Megefan_Blog 

    4. Remove the folder

    app/code/Megnor/Blog

    5. Install Magefan Blog Extension.

    6. Recreate blog widgets. For homepage widget use custom template "Megefan_Blog::widget/list_home.phtml" in widget settings.

     

    Read more »
Posts loader
^Top