Magento 2 Extensions Sale

Monthly Archives: March 2020

  1. Magefan News and Updates - March 2020

    Hello there Magento fans!

    Are you eager to learn about some news and updates we've have prepared for you on March?


    Quite a lot of new features have been implemented to the Magento 2 Blog this month.

    There was added the

    Read more »
  2. Magento 2 Image Lazy Load In Knockout Template

    To apply lazy load for images in your Knockout template, first, make sure that  Magento 2 Image Lazy Load extension is installed.

    Then insert an image into the HTML template (my-template.html) like this:

    <img data-bind="attr: {src: $parent.getPixelUrl(), 'data-original': thumbnail, alt: code_article, loading: 'lazy', width: '165', height: '165' }"/>

    Example:

    <div class="options-block" data-bind="foreach: getOptionBlocks(), afterRender: initLazyLoad()">
        <div class="option-item" data-bind="attr: {'data-sku': sku}">
            <div class="image-block">
                 <img data-bind="attr: {src: $parent.getPixelUrl(),
    Read more »
  3. Testing Magento 2 Auto Language Switcher

    If you have installed Magefan Auto Language Switcher Extension for Magento 2 and don't know how to test it properly, please follow these simple steps: 

    1. Enable all Magento 2 caches

    All live sites use enabled caches, so make sure that you have enabled all one when testing.

    2. Use Developer (Simulate Geolocation) 

    There is an option in Magento 2 Auto Language Switcher that allows you to test the extension performance.  

    Read more »
  4. Fixed: Related Products Template Does Not Looks Good

    In Magento 2 Blog v2.9.3 we added the feature that many customers requested about, it is "use the default catalog related products template" instead of custom blog related product template. This helps to display related products on the blog post page in the theme design automatically. The commit related to this change can be found at GitHub.

    Unfortunately, there are thousands of themes for Magento 2, and some of them have specific JS and CSS (e.g. Porto Theme). That is why if you use Blog extension v2.9.3 or greater and the related products block does not look good, please try to do next:

    1. Create a new file in your theme directory:

    app/design/frontend/ThemeVendor/themename/Magefan_Blog/layout/blog_post_view.xml

    Read more »
  5. How To Check If My Magento Server Configurations Are Ready for WebP?

    In case you don't know if your webserver is already configured well and can use WebP, please follow these steps to check:

    1. Create a new testwebp.php  file in your Magento 2 root directory.

    2. Add this code to it:

    <?php 
    
    $errorSufix = '<br/>Please enable it in your hosting configuration or ask the server administrator to help you with this.</strong>';
    
    if (!function_exists('gd_info')) {
       echo ('<strong style="color:red">Error: GD is not enabled in PHP settings.' . $errorSufix);
    exit(); } $hasWebP = false; foreach (gd_info() as $key => $value) { if (stristr($key, 'webp')) { $hasWebP = true; break; } } if (!$hasWebP) { echo ('<strong style="color:red">Error: WebP option is not enabled in PHP GD.' . $errorSufix);
    exit(); } if (!function_exists('imagecreatefromwebp')) { echo ('<strong style="color:red">Error:
    Read more »
^Top
Chat