How to Create Widget in Magento 2 – Magento 2.3

There are 5 steps to create a new widget in Magento 2 (Magento 2.3) 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 Create Simple Grid Listing in Magento 2 Admin with UI Component – Magento 2.3

Here are the steps that you will follow in this Create simple grid listing in Magento 2 admin with UI component: Step 1. Create company_staff_listing.xml Step 2. Create StaffDataProvider Step 3: create model Create simple grid listing in Magento 2 .In my last post in this series, we have learnt “How to Register a module […]

Read More

How to Setup Cron Job in Magento 2? (Magento 2.3)

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

How to create an event in Magento 2? – Magento 2 events (Magento 2.3)

As you know, I had a guide “How to use Magento 2 events” before. Now I will help you how to create an event in your extension for Magento 2. This guide is so easy to do, so let’s enjoy it with these easy steps. Now I have a simple example:

As you can see […]

Read More

How to use Magento 2 event? – Magento 2.3

Here are the steps that you will follow in this How to use Magento 2 event (Magento 2.3)?: Create a file events.xml in app/code/[Namspace]/[Module_Name]/etc Create observer file SaveAfter.php in app/code/[Namspace]/[Module_Name]\Observer\Sales\Order Today, I want to share with you: how to use Magento 2 event with a small, simple example.  The situation here is I want to do something after save […]

Read More