Page 5 - Monthly Archives: 2021
- 1 min read
If you decided to remove , please follow the steps below. You can contact our team for a free consultation in case you have any issues with Magefan's extension.
Remove Extension Files
Removing files instruction depends on the way Admin Email Notifications extension has been installed in.
1. If you can find the extension files in the folder
app/code/Magefan/AdminNotifications
then remove this folder.
2. If the extension was installed via the composer and its files located in the folder
vendor/magefan/module-admin-notifications
then run composer CLI command to remove it
composer remove magefan/module-admin-notifications
Once extension files have been removed, run these Magento CLI commands:
php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Remove Extension Data (optional)
Attention! This will clean all Admin Email Notifications configurations.
1. Just inihor
- 1 min read
If you need to update by Magefan, please follow the steps below.
Note: the updating instructions depend on the method the Admin Email Notifications extension was installed with.
Update using composer
If the Admin Email Notifications module was installed via the composer (check if vendor/magefan/module-admin-notifications folder exists), then you need to run these simple CLI commands in Magento 2 directory:
composer remove magefan/module-admin-notificationscomposer require magefan/module-admin-notifications ^x.x.x# replace x.x.x with the version you want to usephp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Update using archive and FTP
If the Admin Email Notifications module was installed via FTP (check if app/code/Magefan/AdminNotifications folder exists), then follow these commands:
1. Download the latest version of the Admin Email Notificationsihor
- 1 min read
You can install by Magefan, using composer or archive installation methods.
Installation via composer (recommended)
Please navigate to your Magefan Account > Downloads > Install via Composer to get the composer installation instructions.
Installation using archive and FTP
Download Admin Email Notifications Extension ZIP-Archive from magefan.com website (not GitHub or other sources).
Extract files.
Copy app folder from the archive to your Magento 2 folder.
In a command line, using "cd", navigate to your Magento 2 root directory.
Run CLI commands:
php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
- 3 min read
Hello there, Magento fans!
First Spring News and Updates are here!
First of all, we would like to introduce our newly developed extension— a splendid tool that allows you to improve order management and save tons of your time.
Easier, faster, smoother order management process is not a “Magento dream” anymore :)
You will enjoy the process of Magento order management with this module!
extension allows you to run deployment commands avoiding website breakdown.
Now it works even more "smoothly" since we have fixed the error on the vanilla Magento 2 installation with no sample data.
It appeared during static content deployment when no storefront theme was selected in design settings. However, you shouldn't encounter it again.
NEW feature of Extension!
Now you will be able to convert images hosted on other domains/servers. Doesn’t it sound fantastic?
We hope you will like this feature as dozens of our customers have enjoyed this feature so far.
Do you use the MagicToolboxihor
- 2 min read
How you can easily scan your Magento 2 order grid and find the orders you need? Definitely not with the information default Magento 2 Order Grid provides you.
What you can do instead is use the extension and add some colors to your order grid. As you might have guessed, in this article you will learn how to add order status colors and where to change them.
So, let's get to it.
To add order status colors to the sales order grid in Magento 2:
Navigate to Stores > Configuration > Magefan Extensions > Better Order Grid.
Enable Order Status Color and don't forget to Save the configuration.
Once you add order status color in the order grid, it will be easier to scan:
You can change the colors for each in case you don't like the colors set by default.
To change order status color in Magento 2:
Go to Stores > Order Status and choose the order status you want to change the color for.
Set the order status Color and press the Save Status button.
When you go to the order grid to check it, you willihor
- 2 min read
can be quite daunting, due to the limited information in the default order grid. Although Magento order gird is missing a lot of things, product image and product information are the most important.
So, to see what was ordered directly from the grid, you need to add products to the sales order grid in Magento. Today you'll learn how.
You can check out this short video of the process or follow the instructions below.
Add Product Images to Order Grid in Magento
1. Navigate to Stores > Configuration > Magefan Extensions > Better Order Grid.
2. Choose the Image on Hover option in the Product Column Template field.
Once you save the Image on Hover option, you'll see the product image in the order grid. All bought product details will be displayed on hover.
Add Product Attributes to Order Grid in Magento
If you want to display product attributes directly in the order grid, go back to the extension configuration. Choose Grid as the Product Column Template and choose if you wantihor
- 1 min read
Sales are a great period for your customers to save some money purchasing your products. However, none of them actually knows how much it takes to organize, arrange and manage sales and orders.
Coupon code sometimes doesn't apply or is used multiple times, or becomes invalid. So, to organize your order grid during sales, you can add coupon codes to the order grid in Magento 2 and easily find orders with discounts.
You just need Extension for this. And in this article, you will learn how to add coupon code column in the order grid.
Take these steps to add coupon code to the order grid in Magento 2:
1. Navigate to Sales > Orders and unfold the Columns menu.
2. Find the Coupon Code in the order attributes and check it.
3. Once you add the coupon code, it will appear in the order grid.
And that's it. You don't need to have any technical skills to add a discount to the sales order grid since Magento 2 Better Order Grid module does it for you.
You won't only be able to see the couponihor
- 2 min read
Managing orders in Magento 2 can be really time-consuming since it takes quite some time to filter, find and process them. That is why to provide a better customer experience, you need to optimize order management. And that is exactly what extension can help you with.
It allows you to customize Magento 2 order grid as per your needs to find orders you're interested in easier and filter them faster. So, let's find out how to configure Magento 2 Better Order Grid.
Take the following steps to configure the Custom Order Grid extension:
1. Navigate to Stores > Configuration > Magefan Extensions > Better Order Grid and Enable Extension.
2. Choose to Hide Orders With Statuses and display only orders with certain statuses in the grid.
3. Select the Product Column Template. You can choose to display Image on Hover or Grid.
Note: when you choose the grid product column template, you need to choose Product Column Display Info: Thumbnail, Name, SKU, Price, Qty Ordered, etcihor
- 1 min read
If you decided to remove , please follow the steps below. You can contact our team for a free consultation in case you have any issues with Magefan's extension.
Remove Extension Files
Removing files instruction depends on the way Better Order Grid extension has been installed in.
1. If you can find the extension files in the folder
app/code/Magefan/BetterOrderGrid
then remove this folder.
2. If the extension was installed via the composer and its files located in the folder
vendor/magefan/module-better-order-grid
then run composer CLI command to remove it
composer remove magefan/module-better-order-grid
Once extension files have been removed, run these Magento CLI commands:
php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Remove Extension Data (optional)
Attention! This will clean all Better Order Grid configurations.
1. Just in case please make aihor
- 1 min read
If you need to update by Magefan, please follow the steps below.
Note: the updating instructions depend on the method the Better Order Grid extension was installed with.
Update using composer
If the Better Order Grid module was installed via the composer (check if vendor/magefan/module-better-order-grid folder exists), then you need to run these simple CLI commands in Magento 2 directory:
composer remove magefan/module-better-order-gridcomposer require magefan/module-better-order-grid ^x.x.x# replace x.x.x with the version you want to usephp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Update using archive and FTP
If the Better Order Grid module was installed via FTP (check if app/code/Magefan/BetterOrderGrid folder exists), then follow these commands:
1. Download the latest version of the Better Order Grid extension archive from magefan.comihor
- 1 min read
You can install by Magefan, using composer or archive installation methods.
Installation via composer (recommended)
Please navigate to your Magefan Account > Downloads > Install via Composer to get the composer installation instructions.
Installation using archive and FTP
Download Better Order Grid Extension ZIP-Archive from magefan.com website (not GitHub or other sources).
Extract files.
Copy app folder from the archive to your Magento 2 folder.
In a command line, using "cd", navigate to your Magento 2 root directory.
Run CLI commands:
php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Once you have installed the Magento 2 Better Order Grid extension you can start the .
- 4 min read
The newsletter is a great opportunity for you to notify your customers about some special offers or sales running as well as provide them with updates and news on your Magento store.
Email marketing remains a powerful type of marketing, and it is one of the best ways to establish strong relationships with your customers and bring companies higher sales if they developed well-planned strategies.
Magento allows you to manage newsletters directly from the admin and in this article you're going to learn how to configure them.
Article Contents
Step 1: Configure Newsletter Subscription Options
Step 2: Create Newsletter Template
Step 3: Send Newsletter Template
Step 4: Configure Newsletter Subscribers
Follow these steps to configure newsletters in Magento 2:
Step 1: Configure Newsletter Subscription Options
When managing newsletters on your Magento store the very first step you should take is to check the newsletter general configuration. There are some options that define newsletterihor
- 5 min read
The out-of-stock situations are not the most welcomed ones. However, you still can turn them to your advantage. Question is, how?
may be one of the options to go for. Yet, Magento 2 product alerts can do the trick much better. By using them, you interact with your customers more, improving their engagement and loyalty at the same time.
In this article, you're going to learn what are Magento product alerts, how to configure them and manage product alerts run settings.
Ready to start?
What are Magento 2 Product Alerts?
Magento 2 product alerts is a system of notifications customers subscribe to on the product page to receive email notifications about any change in the product price or product stock status. Correspondingly, there are 2 types of product alerts in Magento 2: Product Price Alert and Product In-Stock Alert.
Thus, customers can get the product they are interested in for a more suitable price when they want to. Or get a product they want to buy right after it is backihor
- 2 min read
Magento 2 being a multifunctional e-commerce platform allows you to create products from the admin panel. There are plenty of options to fill out to , which obviously takes some time.
And what if you have to create a huge amount of products, especially during the development or testing?
The easiest, in this case, would be to create products programmatically. And that is exactly what you're going to learn in this article.
Use the following method to create a simple product in Magento 2 programmatically:
getObjectManager();
$state = $objectManager->get('\Magento\Framework\App\State');
$state->setAreaCode('frontend');
$product = $objectManager->create('Magento\Catalog\Model\Product');
try {
$product->setName('Test Product');
$product->setTypeId('simple');
$product->setAttributeSetId(4);
$product->setSku('test-SKU');
$product->setWebsiteIds(array(1));
$product->setVisibility(4);
$product->setPrice(array(1));
$product->setImage('/testimg/test.jpg');ihor
- 4 min read
Every store works hard trying to make their customers happy. However, sometimes it happens that people want their money back. This is an inevitable step in .
In such cases, people request a refund which in Magento is called Credit Memo.
And in this article, you will find out what is it and how to create it. Besides, you will learn about a solution that will help you to get rid of refunded orders.
What is Credit Memo in Magento 2?
Magento 2 Credit Memo is a document that defines how much money will be returned to the customer. How you create credit memos in Magento 2 generally depends on the payment method used while placing the order.
Based on this there are 2 types of credit memos: Online and Offline.
Offline Credit Memo means the refund will be saved just in the Magento database and the funds won't be transferred to the bank, therefore no money will be actually returned. It is used in case the offline payment method (e.g. money and check) was used while placing an order.
Online Creditihor
- 2 min read
WebP — is a modern image file format many websites use in order to reduce image size and improve website performance. But let's not forget that big-size images can slow down your application loading too.
Consider using WebP images in your application for Magento 2?
Here is how.
If you have a third-party application (e.g. application for iOS, Android, etc.) and use it for your Magento 2 store, you can display images in WebP format there, even if you only have the PNG, JPG, or other format images.
The only thing you need is our extension installed on your Magento 2 store.
So, to display WebP images in third-party applications you have to define the getWebPUrl function in the aplication code. Find the example below:
function getWebUrl(imageUrl) { /* @var string */ imageUrl = imageUrl.trim(); var baseUrl = 'https://mystore.com/'; var imageFormat = imageUrl.split('.').pop(); var mediaBaseUrl = 'https://mystore.com/pub/media/'; var staticBaseUrl = 'https://mystore.com/pub/static/';ihor
- 1 min read
Sometimes you need to run Magento 2 code externally, in the following cases:
Magento 2 integration with other frameworks or platforms that are installed on the same web server,
quick test execution of some method, for example, cron job.
For example, create a test.php file in the Magento 2 root directory and add the following code to it:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
use Magento\Framework\App\Bootstrap;require __DIR__ . '/app/bootstrap.php';
$bootstrap = Bootstrap::create(BP, $_SERVER);
$obj = $bootstrap->getObjectManager();
$state = $obj->get(Magento\Framework\App\State::class);$state->setAreaCode('adminhtml');
$object = $obj->create(\VendorName\ModuleName\Folder\Class::class);$object->someMethod();
VendorName\ModuleName\Folder\Class - the name of the class, you want to execute;someMethod - the name of the method you want to execute;Attention! Make sure the __DIR__. '/app/bootstrap.php is the correct path to the Magento 2 app/bootstrap.php fileihor
- 4 min read
In Magento 2 you can create plugins (interceptors) that allow you to extend functionality and execute your own code before, after, or around any PHP class public method.
For example there is a PHP class with public functions "setName", "getName", "save":
<?phpnamespace VendorName\ModuleName\Folder;class SomeModel{ private $name; public function setName($name, $storeId = 0) { $this->name[0] = $name; } public function getName($storeId = 0) { return $this->name[$storeId]; } public function save($fields, $customData) { /* some save logic here */ }}
How to create plugin in Magento 2?
1. Create the etc/di.xml file in folder and add the following code there:
<?xml version="1.0"?><config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="VendorName\ModuleName\Folder\SomeModel"> <plugin name="mycompany_mymodule_plugin_modulename_Folder_somemodel" type="MyCompany\MyModule\Plugin\ModuleName\Folder\SomeModelPlugin"ihor
- 2 min read
Downloadable products in Magento 2 have no physical form and require practically nothing to manage. You don't need to cover manufacturing, publishing, shipping or delivery, etc. And that is what makes downloadable products so popular.
In Magento 2, except for creating a downloadable product, you have to configure the general Downloadable Product Options.
These steps to configure Downloadable Products Options in Magento 2:
Go to Stores > Configuration > Catalog > Catalog and find the Downloadable Product Options section.
Choose the Order Item Status to Enable Downloads which defines if the order needs to be Invoiced or Pending for a customer to be able to download the product.
Set the Default Maximum Number of Downloads available for 1 customer once he purchases the downloadable product.
Choose if you want the downloadable product to be Shareable, which means customers will receive the download link via email and will be able to share it, or No if you want a customer to logihor
- 2 min read
One of the primary tasks of any storeowner is to make the shopping experience as diverse and advanced as possible. Magento 2 custom options can help with that. They help you to provide your customers with an opportunity to choose product options as to their needs without relying on the product attributes.
Such functionality allows you to categorize products, create cart price and . Thus, you may configure it for your own store too. And this is exactly what you'll learn today.
How to Configure Magento 2 Custom Options?
1. Navigate to Catalog > Products and choose the product you'd like to configure customizable options for or Add New Product if needed.
Note: you can't configure Magento custom options for simple products that already constitute the .
2. Scroll down to the Customizable Options section and press the Add Option button.
Specify the Option Title and Type.
Check if you want this option to be Required.
Note: once you check the Required option's box, the corresponding custom optionihor
- 3 min read
In the you learned how to create new tables in Magento 2 database. In this one, you will learn more about the models used to work with the Magento 2 database which allows you to read, edit and delete the data.
Magento 2 and Magento 1 uses the Model/ResourceModel/Collection ORM (Object-relational mapping) for these purposes. To implement this concept you need to create 3 files (model, resource model, collection).
1. Create the Model file:
app/code/VendorName/ModuleName/Model/Somemodel.php
add the following code to it:
<?php
namespace VendorName\ModuleName\Model;
class Somemodel extends \Magento\Framework\Model\AbstractModel{ protected function _construct() { $this->_init('VendorName\ModuleName\Model\ResourceModel\Somemodel'); }}
The _construct initializes the resource model. Pass the name of the resource model class (create it in the next step) to the _init method.
Model is what you will most often work with. This class must be inherited from ihor
