Monthly Archives: September 2018

  1. 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




    4. Remove the folder


    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 »
  2. bin/magento Fatal error: Allowed memory size of xxxx bytes exhausted (tried to allocate xxx bytes)

    When you run Magento 2 CLI command "bin/magento ..." and get the error:

    Allowed memory size of xxxx bytes exhausted (tried to allocate xxx bytes)

    You can easily fix it using this command instead of bin/magento:

    php -dmemory_limit=-1 bin/magento ....
    Read more »
  3. Migrate AheadWorks M1 Blog to Magento 2 Blog

    In order to migrate AheadWorks Blog for Magento 1 to Magento 2 Blog please install Magento 2 Blog extension. After that, navigate to Admin Panel > Content > Blog > Import and choose the Import from AheadWorks M1.

    Migrate Aheadworks Blog Magento 1

    Read more »
  4. Programmatically assign attribute to all attribute sets in Magento 2

    If you have a product attribute and want to assign it to a single attribute set, it's easy to do via Magento 2 Admin Panel > Stores > Attributes > Attribute Set.
    But what if you need to assign it to all your attribute sets? What if you have 50+ or ever 100+ attribute sets? It can be time costly.

    So what you can do, is to create a simple script that will do all job for you.

    1. Create a PHP file "myscript.php" in your Magento 2 root directory.

    Read more »
  5. Configure Open Graph Tags for Magento 2 Product Page

    If you want to make your Magento 2 products attractive when shared you need to configure OG tags for them.

    Take the following steps to configure Facebook OG Tags for the product page in Magento 2:

    1. Go to Admin Panel > Catalog > Products and choose a product you are interested in.

    Magento 2 OG Tags,Product page

    Read more »
  6. Configure Open Graph Tags for Magento 2 CMS Page

    Following steps to configure Facebook OG Tags for Magento 2 CMS page:

    1. Go to Admin Panel > Content > Pages.

    Magento 2 OG Tags, CMS Page

    Read more »
  7. Сonfigure Open Graph Tags for Magento 2 Category Page

    Configuring Facebook Open Graph tags for Magento 2 category page on your website, you set the OG Title, OG Description and OG Image people would find attractive and worth following.

    You can promote your Magento 2 store categories on Facebook or any other social media and drive more traffic to your store through clickable and attention-grabbing posts.

    In order to configure OG tags for Magento 2 category page:

    1. Go to Admin Panel > Catalog > Categories.

    Magento 2 OG Categories

    Read more »
  8. Configure Open Graph Extension In Magento 2

    In order to set up base configurations for Magento 2 Open Graph Module please go to Stores > Configuration  Magefan Extensions > Open Graph.


    1. Enable an extension choosing correspondingly Yes in Enable Extention select box.

    2. In a Default OG Image, you can set Open Graph image by default. The chosen image will be used for a page if it is not redefined, for example in product settings.

    3. The Open Graph description can be set by default in a Default OG Description.

    Magento 2 OG Extention,General

    Read more »
  9. Configure Auto Language Switcher in Magento 2

    The following steps to configure Magento 2 Auto Language Switcher:

    1. Go to Stores > Configuration > Magefan Extensions > Auto Language Switcher.

    2. Enable the extension.

    3. Select the Switcher Mode.

    Note: this option allows you to Auto Direct customers to the store view in their local language based on their location or displays the Suggestion Popup for customers to choose the store view manually.

    4. Choose whether you want to Share Store View Per Website or to set it to be Global.

    Note: If you choose to share store views Per Website then customers will be directed to the store views within one website. However, if you choose Global, customers will be directed to the store views from different websites. 

    e.g. You have one website in English, Spanish, German languages, and the second website in English, Spanish, French. You set to Share Store View Globally. In case a person from France comes to your first website he/she will be redirected to your second website since there is the french store view.

    Magento 2 Language Switcher General Configuration

    Read more »
  10. Configure Magento 2 Multi-Language Store

    In order to create a multi-language Magento 2 store: 

    1. Add a New Store View.

    • Go to Admin Panel Stores > All Stores and press the Create Store View button.

    Magento 2 Multi-Language Store,Create Website

    Read more »
  11. Configure Auto Currency Switcher in Magento 2

    Magento by default allows you to add multiple currencies to your store and display them in the header. However, it is much better if you configure auto currency switcher and display prices in customers' local currency automatically.

    Magento 2 Auto Currency Switcher Extension serves this purpose perfectly. So, in this article, you will learn how to configure it in your Magento 2 store.

    To configure Magento 2 Auto Currency Switcher:

    1. Go to Stores > Configuration > Magefan Extensions > Auto Currency Switcher.

    Magento 2 Auto Currency Switcher, General,Extension Restrictions

    Read more »
  12. How to clean Magento 2 Cache?

    Clean Magento 2 cache via Admin Panel

    In order to clean a cache in Magento 2 please go to Admin Panel > System > Cache Management.

    Magento 2 Cache Management,Cache Flush

    Read more »
  13. Configure Magento 2 Multi Currency

    When you configure Magento multi currency you are one step ahead of your competitors who haven't done it yet. 

    Selling globally you have to make sure your customers receive the best shopping experience on your website. And multi currency is one of the ways to provide that.


    It gives your customers a choice to view prices in their preferred currency. Besides, it allows you to avoid cart abandonment and checkout bounce rates since your customers know what they will be charged with.

    Conveniently, Magento provides you the multi currency options out-of-the-box. So you don't need to install any additional software for this. Setting up multi currency in Magento 2 includs several steps, and we're going to walk you through all of them.

    Let's go.

    Read more »