Using pipeline deployment for Magento 2 Or using Magento commerce cloud, you need to make you code compatible with varnish cache. I have faced issue with customer session after setup varnish on server to load my required system defined and custom customer attributes. Here is the fair solution to load customer data using Magento 2 … Continue reading Magento 2 : set customer data in local store to load properly with varnish anywhere
Tag: developer
Download and Install Magento 2 using CLI
At the drop of a hat I would like to write this post because, for the developers, downloading and installing Magento is just a frequent and unpredictable task along with his/her routine. Here is handy solution to do the same using CLI, it's quick and you need not check browser to fill forms and install … Continue reading Download and Install Magento 2 using CLI
Get ready for Magento 2 with newly installed Linux os
I have faced issue of setting up magento when I install LinuxOS in new system and set it for Magento 2 application. Here is the handy solution for that. I hope this gonna help you to get ready to install Magento 2 in LinuxOS. Step 1: Get ready with LAMP Install apache2 sudo apt-get update … Continue reading Get ready for Magento 2 with newly installed Linux os
Magento 2 set Page title while extending customer blocks
Here is the Page Title solution for M2 while you are using ‘Magento\Customer\Block\Form\Register’ or ‘Magento\Customer\Block\Form\Login’ class to extend in your custom block. I have found that when we are using this to extend our custom block they make changes in page titles in some of the pages like order success page. After struggeling for sometime … Continue reading Magento 2 set Page title while extending customer blocks
Magento 2 get Customer session with FPC enabled
I have faced this issue many times and finally solved by implementing like this. Yeah we can call this a patch but need to implement this till we are having issue in Magento 2 FPC and customer session. Hope this will be helpful to someone. <?php namespace <Namespace>\<Module_name>\Model\Test; use Magento\Framework\ObjectManagerInterface; class Test{ /** * @var … Continue reading Magento 2 get Customer session with FPC enabled
Magento 2 : Mass delete categories
Sometime it's required to delete all categories and products from database during development. Here is a sql script for Magento2 to delete all categories from database. SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE catalog_category_entity; TRUNCATE TABLE catalog_category_entity_datetime; TRUNCATE TABLE catalog_category_entity_decimal; TRUNCATE TABLE catalog_category_entity_int; TRUNCATE TABLE catalog_category_entity_text; TRUNCATE TABLE catalog_category_entity_varchar; TRUNCATE TABLE catalog_category_product; TRUNCATE TABLE catalog_category_product_index; INSERT … Continue reading Magento 2 : Mass delete categories
Magento 2 : Generate meta data csv
Generate meta data csv <?php /** * Generate meta data csv * * If want to update meta data after product created and meta data in a common format * create csv file using this script and import it. * * It is more better then save product directly programmatically. * @var $_newMetaTitle [to update … Continue reading Magento 2 : Generate meta data csv
Magento 2 Data migration
Finally today I have done most awaited task “Data Migration” from M1 to M2. If you wanna do the same just follow steps. 1. Setup a database with contain M1 databse 2. Setup M2 application without sample data 3. Make sure that M1 and M2 database can be connected through network. 4. check M2 application … Continue reading Magento 2 Data migration
Magento 2 Open login form in popup
Magento 2 open login box in popup Once I required to display login box in popup. There are many extensions available which can be useful to do the same but having extra functionalities which are not required for me. After spending few hours I have found a simple solution for this. Follow the steps to … Continue reading Magento 2 Open login form in popup
