Hi everyone, now we have a more powerful and stable version of Magento than ever, Magento 2. After hearing so much about Magento 2 news, roadmap as well as new features, you probably want to experience this newest version by yourself. The most basic way is installing Magento 2 on localhost, but it is quite […]
Search Results for: magento 2 demo
Here's what we've found for you
10d. How to Remove Magento 2 Store Demo Notice
Hi guys, After installing successful Magento 2, your store will have a Store demo notice at the top of the website to notice visitors that your Magento 2 store is under construction so there are some purchase functions be disable. This is a very convenient way to tell your customers about the current status of store […]
Querying with filtering Indexeddb using library DB.js – Magento 2.3
Today, we will try to filter in the library db.js First, we will create the data base magestore_db with table student: 1 We insert some students into data base 2 we can filter with property and value 3 We also can filter with function 4 With filtering with function, you can custom to filter and, 5 […]
[2]. Edit Product Page with Magento 2 Shopping Tools – Magento 2.3
Hi friends, Maybe you have known that it’s really important for your store to catch customers’ attention right at the product pages. With Magebto 2, your store includes a powerful set of shopping tools using to edit Product Page that create opportunities for customers to interact with your store, and share the experience with friends. […]
How to Add a Custom Discount in Magento 2 (Magento 2.3)? – Magento 2 Custom Discount
Here are the steps that you will follow in this How to add a custom discount in Magento 2 (Magento 2.3)? – Magento 2 Custom Discount: Register a total in the file sale.xml Add discount to change the grandtotal in the model Add the total in the layout file View model knockout Add a Custom Discount […]
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 […]
Magento 2 Shipping Methods – Magento 2.3
Shipping is an indispensable part of retail business as well as e-commerce. To understand the meaning of each shipping method and when to use them, check out my Beginner’s Guide to E-commerce Shipping and Fulfillment. After acquiring the basic e-commerce shipping and fulfillment, it’s time to actually configure your Magento 2 shipping settings to make sure it […]
How to Get Value of Custom Attribute on Magento 2 Rest API? – Magento 2.3
Here are the steps that you will follow to get value of custom attribute on Magento 2 Rest API in Magento 2 tutorial: 1. Create new column and set value for the existing order. 2. Create a specific new file. 3. Create an observe. 4. Create a file to handle the event. 5. Delete folder to apply […]
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<?php .. $event_data_array = ['cid' => '123']; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $eventManager = $objectManager->create(‘\Magento\Framework\Event\Manager’); $this->_eventManager->dispatch('my_custom_event', $event_data_array); .. ?> |
As you can see […]
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 […]