How to?

  1. Adding HTML Block At Magento 2 Page Top

    There are situations when you want to add a promo block to the top of the page, for example, free shipping offer, discount for Black Friday or other holidays, and you need to display it on the page quickly. 

    This is easy to do with Magento 2 admin panel. First of all, we'd like to mention that adding and configuring HTML Block doesn't require any programming skills. 

    In order to add HTML block at the top of the page please go to Admin Panel > Content > Blocks and press the Add New Block button.

    Magento 2 CMS Block Menu

    Read more »
  2. How to Change Order Customer in Magento 2?

    In order to change order customer, you need to have Magento 2 Convert Guest to Customer Module installed on your store. If you already have it, please do next:

    1. Navigate to Sales > Orders and choose the order you want to be assigned to another customer.

    Magento 2 Convert Guest to Customer  Configuration

    2. Then you have to simply press the Change Customer button in the Account Information section.

    Magento 2 Change Order Customer

    3. Then there will appear a grid with all customers. All you have to do is choose the customer you want to assign to the order to and press the Assign to Order link.

    Read more »
  3. Magento 2 Zero Downtime Deployment

    Let's start with the little mind-reading magic trick.

    1. Do you use Magento 2?

     - Yes, you definitely do.

    2. Do you hate to see when your store is broken or is in maintenance mode while running Magento 2 deployment commands?

     - Yes, you do.

    Did we guess?

    Yes? That's great. In the next 5 minutes, we'll help you with this pain. At Magefan we've created Linux bash script that allows you to run bin/magento setup commands without braking store, long downtime and losing sales.

    Read more »
  4. How to Uninstall Magento 2 Extension

    There are situations when you don't want to longer use Magento 2 module due to its issues, lack of functionality or any other reason and want to remove it. In this case, you can easily uninstall Magento 2 extension (remove Magento 2 extension) using the following steps:

    1. Define where extension files are located.

    There are 2 places where you can find extension files:

    a) app/code/VendorName/ModuleName
    b) vendor/vendor-name/module-name
    Read more »
  5. 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 »
  6. 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 »
  7. 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:

    Read more »
  8. Magento 2 XML Sitemap Configuration

    To configure the XML sitemap in Magento 2:

    1. Go to Marketing > Seo & Search > Site Map

    Magento 2 XML Sitemap Configuration

    2. 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 »
  9. 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 »
  10. 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

    2. Unzip archive.

    Read more »
Posts loader