Browsed by
Category: Magento 2

How to cache Magento collection query results

How to cache Magento collection query results

Introduction Today, I would like to introduce “How to cache the Magento collection result” without customizing the PHP code. When you have worked with the Magento collection, you would like to consider if you can cache the result for the next time if the data aren’t generally updated by admin or 3rd tools. By default, Magento support saves the result of the collection to cache but it is not enabled by default, we have to add some custom to di.xml…

Read More Read More

Magento 2 Critical CSS and Core Web Vital Optimization

Magento 2 Critical CSS and Core Web Vital Optimization

Google requires the Core Web Vitals score for getting better on SEO. Web Vitals is an initiative by Google to provide unified guidance for quality signals that are essential to delivering a great user experience on the web. With Magento 2 Critical CSS and Core Web Vital optimization module we provides some ways to optimize CWV values and implement criticalcss.com service and some Core Web Vital optimization to your Magento 2 project. We built a service that allows generating the…

Read More Read More

How to create a custom message queue in Magento 2

How to create a custom message queue in Magento 2

We know that Magento 2 supports consumer and MessageQueue by default (MQF). The Message Queue Framework (MQF) is a system that allows a module to publish messages to queues. It also defines the consumers that will receive the messages asynchronously. Example, after save the order, you have to send a notification to the customer (In this case, we temporary forget the feature asynchronous email, and forcus to the process that could asynchronously) The following diagram illustrates the Message Queue Framework In…

Read More Read More

Adding a customization product filter on the product list

Adding a customization product filter on the product list

Some day, you has a request that add a default filter on category & search result page that always filter product match a condition such as “Style Jacket”. Adding a customization filter on layered navigation of the category and search result page isn’t simple, Today I will provide you with how to do those things with  Default Magento and Customize the module Amasty Layered Navigation.. Part 1: Adding a custom filter on category page/search page with default Magento 2. Firstly, You…

Read More Read More

Debug Magento Cloud project with Xdebug

Debug Magento Cloud project with Xdebug

Debug Magento Cloud project with Xdebug It’s the same as remote debugging on a webserver. Just some differences are listed below– Magento Cloud has 3 nodes for the staging environment.– You have to create a ticket on Magento support for enabling Xdebug and get the Xdebug key. Requirements To run and use Xdebug, you need the SSH URL for the environment. You can locate the information through the Project Web Interface or your Cloud Onboarding UI. Configure Xdebug To configure…

Read More Read More

Magento 2 Graylog integration

Magento 2 Graylog integration

This module allows your Magento website to push the log to your Graylog service, easy to use, stable, helps you investigate the log faster. >> hidro/module-graylog – Packagist What is Graylog: “Graylog provides answers to your team’s security, application, and IT infrastructure questions by enabling you to combine, enrich, correlate, query, and visualize all your log data in one place”: Industry Leading Log Management | Graylog Main Functionalities Installation Type 1: Zip file Unzip the zip file in app/code/Hidro Enable…

Read More Read More

Nginx – Different storeviews or websites in subfolders

Nginx – Different storeviews or websites in subfolders

A client wants his multistore shop to be set up like this: http://www.domain1.org/en/ -> store view 2 http://www.domain1.org/de/ -> store view 3 http://www.domain1.org/fr/ -> store view 4 http://www.domain1.org/it/ -> store view 5 In this post, I will show you how to do this thing by using Nginx configuration. Step 1: add the configuration mapping to Nginx’s conf file. /etc/nginx/config.d/mapping_store.conf Step 2: Update the Magento’s nginx configuration By default, Magento provides sample Nginx configuration in the website’s root directory. It doesn’t…

Read More Read More

Export admin grid with selected columns

Export admin grid with selected columns

=> How can I remove columns in exported CSV from order grid? https://magento.stackexchange.com/questions/166610/magento-2-how-can-i-remove-columns-in-exported-csv-from-order-grid Hello. Key: What you see is what you export!!! When you are working with admin grids, when you want to export data from the admin grid, but you know that you these columns of the data grid has hardcoded at the backend in *[grid_id].xml*, Now I will give you a solution for this case you will export exactly columns you have selected. What you see is what you…

Read More Read More

Integration Elasticsearch On Magento 2 Community (CE)

Integration Elasticsearch On Magento 2 Community (CE)

Magento 2 Open Source (CE) does not provide integration with Elasticsearch by default, but we have other choices for this case there are Elasticsearch is built-in – Magento 2.3.4 Magento 2 Free Module: Elasticsuite from Smile-SA => https://github.com/Smile-SA/elasticsuite/ Elasticsearch Free Service cloud: https://bonsai.io Now let we are going to Install Elasticsearch extension and config Elasticsearch extension with Bonsai Elasticsearch cloud Step 1: Create an account in https://bonsai.io and create your first Cluster. After all you will have an Access URL like this: https://[username]:[password]@[application-code].ap-southeast-2.bonsaisearch.net Step 2: Let login to the…

Read More Read More