Page 15 - Blog
News, insights and resources from the world of e-commerce
- 3 min read
All store owners know how important it is to keep the order data up to date. Why? Because this way you can avoid any kind of misunderstanding, make your store more customer-friendly, and improve their experience.
This is why there is a great option — Magento 2 order comments — which helps admins to clarify and update certain details, when .
Read on to learn what are order comments and how you can configure them in your Magento 2.
What are Magento 2 Order Comments?
Magento 2 order comment is a note on the order view page used to add some details or updates about the order. They are visible in both frontend and backend order grids. However, by default, only admins can leave these comments.
If you decide to add any order comment in the admin panel, it will be sent to customers' emails and/or displayed on the clients' order page. However, you don't necessarily need to send the command to customers via email. It's optional.
If a customer wants to revise some things or reply to the admin's orderihor
- 1 min read
If you want to tailor your customer's experience to their needs you have to gather as much information about them as possible. Displaying unique pricing details or offering different shipping services based on customer groups required you to get current customer data in Magento.
Besides, customer age, gender and location are valuable marketing insights you can use to tweak your strategy.
Since you already know how to and to customize them, in this guide you'll learn everything about getting logged in customers details.
Get Current Customer in Magento 2
You can get current customer in Magento via \Magento\Customer\Model\Session model using two methods.
Using Construct
<?phpnamespace VendorName\ModuleName\Folder;class Example{ private $customerSession; public function __construct( \Magento\Customer\Model\Session $customerSession ) { $this->customerSession = $customerSession; } public function getCurrentCustomer() { return $this->customerSession->getCustomer(); }}?>
Using Object Managerihor
- 1 min read
Magento allows you to create and configure 6 different in the admin panel. Each product has a unique name, ID, and other details related to it. So, after you learn how to , you have to know how to get current product in Magento 2.
Get Current Product in Magento 2
To get current product details you need to use .
<?phpnamespace VendorName\ModuleName\Folder;class Example{ private $registry; public function __construct( \Magento\Framework\Registry $registry ) { $this->registry = $registry; } public function getCurrentProduct() { return $this->registry->registry('current_product'); }}?>
And now you can use getCurrentProduct() method:
// print current product dataif ($currentProduct = $example->getCurrentProduct()) { echo $currentProduct->getName() . '<br />'; echo $currentProduct->getSku() . '<br />'; echo $currentProduct->getFinalPrice() . '<br />'; echo $currentProduct->getProductUrl() . '<br />';ihor
- 1 min read
Although require manual management, you don't have to worry about it with the for Magento 2. It allows you to automate the process and create related product rules based on multiple products and cart attributes.
All you need to do is set when where and under what condition to display related products. However, you also don't have to create multiple rules from scratch since the module allows you to duplicate related product rules.
To duplicate related product rules in Magento:
1. Navigate to Marketing > Automatic Related Products > Rules and choose the rule you want to copy the conditions from.
2. Press Duplicate on the top menu panel.
Duplicated related product rules will be disabled by default and have the corresponding label added to the title. So, all you have to do after that is tweak the rule settings, rename it, enable and save.
This feature allows you to configure similar rules for multiple pages in a matter of minutes. It also works for the you create to displayihor
- 3 min read
Customers are not always ready to buy your products immediately while shopping. Usually, they need more time to make up their minds and consider all pros and cons of a certain item. And while you can , Magento wishlist will benefit your more.
A wishlist is an essential feature that allows customers to have their preferred items gathered in one place and buy them during the next visit to your website.
Additionally, they can share their wishlist with friends. This allows you to reach more customers and increase the demand for your products.
So, today we'll cover everything you need to know about Magento 2 wishlist feature and how you can benefit from it.
What is a Wishlist in Magento?
Magento wishlist is a collection of products, a registered customer hasn't bought yet, but apparently plans on purchasing in the future or sharing with friends.
A wishlist is a great feature not only for customers but store owners as well. Using wishlists you can analyze your sales and follow the trends. Besidesihor
- 1 min read
Once you know how to , you might also need to learn how to get the current category in Magento 2. Regardless if you want to provide discounts based on category or simply retrieve all category information, this guide will come in handy.
Get current category in Magento 2 in PHP class
<?phpnamespace Vendor\Module\Folder;class Example { private $registry; public function __construct(Magento\Framework\Registry $registry) { $this->registry = $registry; } public function getCurrentCategory() { return $this->registry->registry('current_category'); }}
Get current category in Magento 2 via Object Manager
<?php$currentCategory = \Magento\Framework\App\ObjectManager::getInstance() ->get(\Magento\Framework\Registry::class) ->registry('current_category');echo $currentCategory->getId();echo $currentCategory->getName();?>
Note: you should avoid direct use of the in your code since it hides real dependencies of the class.
So, as you can see, getting current category in Magento 2 is not that hardihor
- 2 min read
Efficiency is key when inventory management is concerned. If you you have multiple sources to keep track of and add products to correspondingly. While you can update product Qty per Source on the product editing page, sometimes it takes too much time.
So in this guide, you'll learn how to optimize the process and edit Qty per Source in bulk. extension makes it possible.
Update Magento Quantity per Source via Grid
1. Navigate to Catalog > Products and select the products you'd like to change the Quantity per Source for.
2. Choose the Update attributes option from the Mass actions dropdown.
3. Go to Quantity (by Magefan) and specify Quantity per source value for one or multiple sources.
Once you Save the changes you'll see the Quantity per source values updated, as well as the stocks.
Update Magento Quantity per Source via Mass Actions
The other way you can update quantity per source in bulk is through mass actions.
1. Choose products you need to update quantityihor
- 4 min read
Customer support is improved significantly with the since you can assist customers with their requests timely. But that's not it.
Shopify store admin is not the only place where you can from. You can also do that from your CRM or helpdesk, etc. (if they allow you to extend them and run requests to the custom API that comes with our app).
But even this is not the only thing a custom API allows you to do.
Today you'll learn about all the options, along with how to retrieve those API Keys.
Log in to Customer Accounts
You can log in to customer accounts using the Login as Customer API in 2 different ways. However, before that you need to retrieve the Public and Secret Keys.
For that navigate to Apps > Magefan Login as Customer > Configuration > API keys. Then copy and generate corresponding keys.
Once you do that, explore the login options available for you.
Note: the following code is written in PHP, but you can use any other programming language.
Login using the customer ID
<?phpihor
- 4 min read
The article was written by Julia who is a content manager at Crowdin. It is a localization management platform. Julia has a love for creativity and likes talking about content creation and SEO.
You probably already know that in the world. Hence, that’s why you chose it. You should also know that it can easily be adapted for international businesses that serve customers in different countries and languages.
As your Magento store grows, you will need to communicate with your customers and potential customers in more than one language. You'll need to translate your Magento Commerce into different languages, and manual copy-parting won’t be the path you want to take.
Integration with Crowdin localization software will speed up the translation process, extract source texts to make them available to translators, and add translations automatically back to Magento.
Translate your Magento website with Crowdin
Translate your Magento content with the help of Crowdin. Setup integrationihor
- 2 min read
If you are a store owner, you probably know that it is not easy to , increase profit margin and retain moderate prices at the same time. What is more, you definitely want to stay ahead of your competitors, develop your business and increase sales.
You can achieve that with the help of Magento 2 minimum order amount. Basically, this feature disables checkout if the subtotal is lower than the set order amount. It's a great approach to increasing sales and keeping them up to your requirements.
Besides, this feature allows you to increase the average order value. And in this guide, you'll learn how to set it up.
To configure Magento 2 minimum order amount:
1. Go to Stores > Settings > Configuration > Sales > Sales.
2. Fill in the information in the Minimum order Amount section.
Enable the Magento 2 minimum order amount for the further configuration of this option.
Fill in the Minimum Amount which defines the required subtotal after the discount's been applied.
Set Include Discount Amountihor
- 2 min read
is a useful feature that's been released with Magento 2.3. You can not only create and add them to but also track the salable quantity and manage the number of products available for purchase.
But what is the salable quantity and how does it differ from the quantity per source? These two terms may seem a little bit confusing, but in this article, we'll explore these questions and clear everything out.
What is Salable Quantity in Magento 2?
Magento salable quantity is the sum of all products from all your sources. It decreases when an order is placed. However, when somebody cancels an order, products are added back to the salable quantity. In other words, salable quantity reflects the number of all items you can sell.
You can see an additional column — Salable Quantity — near the Quantity per Souce column while working with the product grid (Catalog > Products).
Magento 2 Salable Quantity vs Quantity per Source
The main difference between salable quantity and quantity per source is thatihor
- 4 min read
Hello, Magento fans,
You will be happy to know that many of your favourite extensions have been updated this month. We’ve added plenty of great and useful features.
Catch the middle-autumn Magefan updates!
New features of the !
You can not create even more categories automatically with the dynamic category rules. We have added compatibility with PHP 8 and moved dynamic product attributes logic to a separate module magefan/module-dynamic-product-attributes.
Besides, we've added multi-website compatibility which allows you to create dynamic categories across multiple websites.
New features of the !
Are your banners and pages targeted at specific customers to increase sales and provide a personalized experience?
The latest version of the CMS display rules extension is even better. We’ve added compatibility with the Hyva theme out of the box.
You’ll also appreciate the Display on Device option (All, Mobile, Tablets, Desktop) that enables you to show different blocks on differentihor
- 8 min read
The fast development of E-commerce gives plenty of opportunities for businesses around the world. Still, selling globally is followed by a lot of challenges the biggest of which is a language barrier.
What page do you think a customer is more willing to purchase a product from: the one in their local language or the one they can't even understand?
If you want to increase your global sales and extend the customer base, you need to know how to manage a multi-language Magento store and translate relevant content into multiple languages.
Although Magento provides the out of the box it won't be enough to translate long-form content like products, categories, or other CMS pages.
That being said, you can rather spend a lot of time on manual translations or resort to Magento translation services to automate the process or do that for you.
In this article, we've gathered the best translation services for Magento that will help you to localize your business.
Overview of Top Translationihor
- 5 min read
To manage your sales effectively, you need a full picture of the products you have in stock. But what if there is more than one inventory source? How can you track the availability of products through each of them and ship the products timely?
That's when Magento Multi-Source Inventory or Magento MSI comes in handy. In order to understand this concept of Magento and how it works, we will take a look at some of the most important features of this tool.
What is Magento 2 Multi-Source Inventory?
Magento 2 Multi-Source Inventory (MSI) is an upgraded tool that was released in Magento 2.3.0 in 2018. Basically, this new feature gives many efficient opportunities for merchants. It allows you to link multiple inventory sources to one or multiple websites, track the product quantity in each of them and manage your sales accordingly.
Initially, Magento had a Single-Source Inventory but they've decided to add some significant changes with the 2.3.0 release. There is nothing complicated. So, evenihor
- 2 min read
Once you have created , you can organize them into stocks. This is the other option of that helps you to manage your inventory appropriately. If you have multiple locations, then it is crucial to track the salable quantity and map your sources to the sales channels.
In this article, we will cover what are stocks exactly and how you can add them in Magento.
What is Stock in Magento?
Basically, a stock is a virtual representation of the sources and your inventory. Stocks help you to keep track of the number of products you have and manage their shipping to different locations.
You can assign multiple sources and sales channels to one stock. But keep in mind, that one sales channel can be connected to one stock only. In this context, a sales channel is actually your Magento website.
During the initial setup, you see a Default stock which your sources and websites are assigned to by default. You cannot disable or delete it, while it is in the Single Source mode.
Note: if you unassignihor
- 2 min read
All owners know the many benefits it offers. Yet, none of them comes easily. You have to do a lot of translations and configurations first.
But you already know that if you've and categories. The next step is to localise your homepage, about us and other pages too.
So, in this guide, you'll discover different ways to translate CMS pages in Magento with little to no manual work.
CMS Page Translation in Default Magento
To do the translation in the default setup, you need to create first. All because there's no store view switcher for pages, and each page has a unique ID.
So just navigate to Content > Elements > Pages and press the Add New Page button. Then add the CMS page content, but for different languages.
Note: alternatively, you can Duplicate the original page and then translate the copy.
In either case, to define what store view to display a CMS page on, choose a corresponding option in the Page in Websites section.
Translate CMS Pages via Translation Extension
Althoughihor
- 6 min read
With an overwhelming number of eCommerce stores rapidly flooding the market, market segmentation becomes one of the leading paths to a successful business. In Magento, it is called customer grouping or simply customer groups which help you to maximize your sales and marketing efforts along with value proposition.
Although Magento 2 customer groups exist within the platform, a few use them effectively to leverage their business objectives.
So, if you want to build relationships with your potential, create loyalty and increase your customer base you need to know how to manage customer groups in Magento properly.
That's what we're going to help you with in this guide.
Before you dive into the multiple ways Magento customer groups can be used for your marketing efforts, you should know what it is and how to structure them correctly.
What are Customer Groups in Magento 2?
Magento 2 customer groups are segments of customers sharing the same needs, characteristics, and behavior. Segmentationihor
- 2 min read
When you create to reach international markets, the first thing you need is to translate it. And for that, you need to install Magento language packs.
Native, or third-party language packs cover navigation titles, labels and buttons on your store. In other words, they cover the basic Magento translation in both, the frontend and the admin panel.
So, in this guide, you'll discover everything you need about Magento language packs and how to use them.
What is Magento 2 Language Pack?
The is a set of files that include translations for different text content on your store. Magento uses translation dictionaries that are easy to update. This means you can easily change, customize or even create your own version of the translations provided by Magento.
Besides, there are different user-generated Magento language packs you can use.
How to Install Magento Language Packs?
Once you find a language pack you need, it's time to install it.
Login to your Magento server as a systemihor
- 3 min read
One of the most useful features of Magento is . It allows merchants to add multiple inventory sources to one or more websites. Using this feature, you can also manage multiple sales channels and run your business much more effectively.
Magento 2 inventory source is one of the most important features of the MSI. But what is it and how can you add it to your website? In this article, we'll cover all these questions.
What is Magento 2 Inventory Source?
Magento 2 source is basically a physical location, where you keep your inventory. It may be any place equipped enough to store products and fulfill orders accordingly: warehouse, distribution center, brick-and-mortar stores.
You have to set the number of products available for purchase per each source. If you sell products from different locations you will have to create a new source for each of them.
Let's find out what steps you have to take to add new sources.
How to Add New Source in Magento 2?
When you start setting up Magento MSIihor
- 2 min read
The first thing you face once managing a store, is translating all of your content and landing pages. However, the content you create and publish on the frontend is not the only content you need to translate.
That's why you have to generate a translation dictionary to form a list of texts to translate in email templates, third-party extensions, JS files, and so on. That's when you could face the Magento "Missed phrase" error.
Note: if you're using the and use the Search and Translate panel to find text to translate, you might still encounter this issue.
Reasons for Magento "missing phrase"
Magento "missing phrase" error mainly appears when you try to generate a translation dictionary when running the following command:
bin/magento i18n:collect-phrases --magento
Most often, the "Missed phrase" error comes from the third-party extensions. It's caused an empty string, like __('') the system tries to translate. In other words, it appears when the text wrapped in the is missing.
How to Fixihor
- 6 min read
If you want to start selling worldwide, be ready for a lot of work. You need to translate all of your pages, set up multiple currencies, personalise email templates and do a lot of other things. But first, you need to learn more about the store views in Magento.
They are the essential step in your multi-languuage store journey. That's what allows you to have different language in your store.
For many the store view concept becomes blurry as soon as the is mentioned. But it's not that complicated.
So, today, you'll dive deeper into Magento hierarchy and understand the importance of the store view scope. We'll explain its capabilities and walk you through a detailed guide on how to create one.
Ready?
Store Views in Magento Hierarchy
You can't define what Magento store view is without looking at the Magento hierarchy first. It consists of websites, stores and store views, where the last one is the lowest level.
So, first, you create multiple Websites, then a Store (or a few of them)ihor
