Magento 2 Blog for Magento 2 community.

Started blog for Magento 2 developers and to help the community.

  • Securing Your Magento 2 Store: Defending Against Search URL Spamming with a Custom Solution
    As the popularity of e-commerce continues to rise, protecting your Magento 2 store from spam attacks becomes paramount. One area that often falls victim to spamming is the search URL, where malicious users or bots flood the system with irrelevant queries. Such spamming not only affects the search functionality but can also have severe consequences on server performance, user experience, SEO, and data integrity.In this article, we delve into the challenges posed by search URL spamming and present a custom solution to combat this issue effectively. By integrating various techniques such as captcha, rate limiting, query validation, real-time monitoring, and security audits, you can fortify your Magento 2 store against spam attacks. This comprehensive approach ensures a secure and efficient search experience for your customers while safeguarding your website’s performance and integrity.Join us as we explore the significance of protecting the Magento 2 search URL from spamming and discover how our custom solution provides a robust defense against this pervasive threat.
  • Magento 2 Cloudflare integration hosted on AWS with load balancer
    Integrating Magento 2 with Cloudflare while hosting on AWS with a load balancer can provide enhanced performance, scalability, and security for your e-commerce website. Here’s an overview of the integration process: By integrating Magento 2 with Cloudflare while hosting on AWS with a load balancer, you can leverage the power of Cloudflare’s CDN, security features, and performance optimizations to deliver a fast, secure, and reliable e-commerce experience to your customers.
  • Magento 2 checklist
    Magento 2 Website Go-Live Checklist: Ensure a Smooth Launch Are you preparing to launch your Magento 2 website? Before making it live, it’s essential to conduct a thorough review to ensure a seamless and error-free user experience. To help you, we’ve compiled a detailed checklist covering every aspect. Let’s dive in: By following this comprehensive checklist, you can minimize the risk of encountering major issues during the launch of your Magento 2 website. Conduct thorough testing across all aspects to …

    Magento 2 checklist Read More »

  • Image Optimization For best performance in Magento 2
    In webpages, Most of the bandwidth is taken by images and it affects webpage performance drastically. So, Image optimization becomes important for the best performance. I will not turn the wheel again. I will add the most important information here only. Lazy/Preload loading for image optimization Concept: You can take a look at it here.Solution: You can use a free extension from mageplaza here. Documentation: Documentation of extension can be found here Layout shift for image optimization Concept: You can …

    Image Optimization For best performance in Magento 2 Read More »

  • Install composer 1.10 using php composer
    Install composer 1.10 using php composer
  • Magento 2 backup script for developer
    Magento 2 developer usually require taking backup of live environment and setup on local or creating staging environment. We need to take backup of Database, App folder and composer.json minimal. We can add media and other assets for full fledged setup. I created a simple script to create backup of these two folder after reading env.php file.
  • How to do Magento 2 performance optimization ?
    Magento 2 is a pretty complex application. If you did not configure it correctly you will find it very slow. To do performance optimization, I am adding some pointers here as follows. Image optimization and lazy loading JavaScript optimization Font Optimization CSS optimization Caching techniques Server optimization Latest version of everything Light Weight theme Production mode Database optimization Code optimization Disable non required module Latest protocol http2 Using Facade pattern for chat loader Serving static data from non cookie domain
  • Magento 2.x – Cannot process definition to array for type tinytext
    I faced issue while setup:upgrade in magento 2 instance. I fixed this issue in three steps as below. Step 1: I open this file : /vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php Find this function and replace code: Step 2 : Run setup upgrade and you will find out column name and it’s details. Now login in to mysql console and replace invoiceNumber by column which we found in last step. You will get all table information. Step 3: Now update that column using below command. …

    Magento 2.x – Cannot process definition to array for type tinytext Read More »

  • Remove magento 2 redundant modules
    Remove magento 2 redundant modules using best techniques and as per standards
  • Font optimization to avoid invisible text
    Magento 2 font optimization techniques.