How to use Memcache in Magento 2 in Ubuntu

Here are 2 steps for you know How to use Memcache in Magento 2 in Ubuntu: Step 1 :To install and configure memcached on Ubuntu Step 2 : To configure Magento to use memcache Step 1 :To install and configure memcached on Ubuntu 1.As a user with root privileges, enter the following command: apt-get -y update […]

Read More

How to Create Widget in Magento 2

  There are 5 steps to create a new widget in magento 2 Step 1: Initialize widget Step 2: Create a widget template Step 3: Create a widget block Step 4: Flush Cache Step 5: Post Widget Step 1: Initialize widget File directory: app/code/Magestore/HelloMagento/etc/widget.xml

Step 2: Create a widget template File directory: app/code/Magestore/HelloMagento/view/frontend/templates/widget/posts.phtml

[…]

Read More

How to Run Enable/Disable Maintenance Mode in Magento 2

Hello, everyone. Maintenance Mode is an important mode in Magento 2. In case you want to temporarily disable your website to update or fix bug, then you should give your website to maintenance mode. So today I will show you the command line of Magento 2 to enable or disable maintenance mode. Main keynotes First, the […]

Read More

Clear Directories during Development in Magento 2

Hello everyone. Clear Directories during Development in Magento 2 While you’re developing Magento modules or themes, your rapidly changing environment requires you to periodically clear certain directories and caches. Otherwise, your code runs with exceptions and won’t function properly. In this blog, I will show you some cases and you must clear the directory to […]

Read More

Prompt Widget in Magento 2

1.Initialize The Magento prompt widget implements a modal pop-up window with an input field, and a cancel and a confirmation button. It extends the Magento modal widget. The prompt widget source is <Magento_Ui_module_dir>/view/base/web/js/modal/prompt.js The prompt widget can be initialized with or without binding to a certain element. 2.Initialization on an element

3.Standalone initialization

[…]

Read More

UI Bookmark Component in Magento 2

UI Bookmark component is a Listing/Grid Secondary Component. It is used to store active and changed states of data grids. It includes state of filters, columns position, applied sorting, pagination, and so on. It uses DB as persistent storage for grid`s state. You can find the table “ui_bookmark” to see it. You can take a […]

Read More

How to Translate a String by Code in Magento 2

In this topic we will show you How to Translate a String by Code in Magento 2 through 5 steps: In .ptml files In email template Strings added in UI components’ templates Strings added in UI components configuration files Strings added in .js files Hello everyone. In Magento 2, you can setup multi languages. But […]

Read More

How to Setup Cron Job in Magento 2?

Here are the steps that you will follow in this How to setup cron job in Magento 2? – Magento 2 cron job: Create file etc/crontab.xml Please go to the ssh console and run the command: php bin/magento cron:run Hello everyone. As you know, Cron is a Linux utility which schedules a command or script on your […]

Read More