Browsed by
Author: Hidro Le

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…

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

Magento 2 – Tips

Magento 2 – Tips

Tip 1: Dump the database from Magento Cloud using N98 STEP 1: magento-cloud tunnel:single -p {CLOUD_PROJECT_CODE} -e {CLOUD_ENVIRONMENT_CODE} -r database STEP 2: Update the Project’s database configuration STEP 3: Enjoy: php7.1 n98-magerun2.phar db:dump –strip=”reporting_system_updates @log @stripped”

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 map $request_uri $MAGE_RUN_CODE { default en_US; ~^/us/ en_US; #en_US is Store View 2’s code ~^/de/ de_DE; ~^/fr/ fr_FR; ~^/it/ it_IT; }…

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

Magento 2 – PHP Optimize Tips – Part 2

Magento 2 – PHP Optimize Tips – Part 2

Continue of Part 1. After part 1 you know how to process with large Collection, why we need to use Model Factory instead of Model in __constructor and Customer data sections to load a partition of the web page without disabling FULL page cache. Today I will provide you with consultation and assist you with some tips when you’re working on data. Tip 1: Use in condition instead of for each id and load Data Model You have an array…

Read More Read More