It may well be that our online catalogue is not updated yet. We have a vast network of ingredients, our supply chain team will be happy to entertain any ingrendient enquiry.
Magento backorders allow customers to place orders even if the desired product is out of stock. That's a great feature since it prevents people from leaving their carts and moving to different stores. It comes in handy at times when the inventory hasn't been restocked, but you want to keep customers engaged.
Note: to prevent unexpected out-of-stock situations, you might want to enable to optimize your stock management.
Magento 2 allows you to set up backorders in two ways: globally or for a certain product. In this article, you'll learn how to apply both of these methods and tackle what backorders actually mean.
What are Backorders?
Backorder is a specific type of order placed by the customer when an item is currently out of stock. So, basically, you can buy an item the moment you visit the store. But it won't be delivered until it appears on the shelves again.
Store owners can benefit from the Magento backorders since they know what products are selling well and whichihor
While working with Magento 2 you perform a wide variety of tasks from to configuring indexers and running . Magento CLI is a useful tool that not only enables you to run a variety of operations but simplifies Magento development in general.
However, you might get overwhelmed by running the same commands over and over again. That's exactly when Magento 2 command shortcuts come in handy.
Surprisingly, many developers don't know about this. So in this guide, we've gathered the and command shortcuts for your convenience.
SSH
Full command
Shortcut
php bin/magento list
php bin/magento l
Cache
Full command
Shortcut
php bin/magento cache:clean
php bin/magento c:c
php bin/magento cache:enable
php bin/magento c:e
php bin/magento cache:disable
php bin/magento c:d
php bin/magento cache:flush
php bin/magento c:f
php bin/magento cache:status
php bin/magento c:s
Setup
Full command
Shortcut
php bin/magento setup:backup
php bin/magento se:b
php bin/magento setup:config:set
php bin/magento se:c:seihor
It's hard to overestimate the importance of making a customer's journey on your website as flawless as possible. If your store is easy to interact with, people will definitely want to come back. As it happens, lots of those interactions happen through the customer account.
That's why you have to make use of the Magento customer account configuration settings. So you can not only make engaging with your store easier but manage customer account options according to your requirements.
Want to track how many customers sign in or create an account on your store? Add to your store and get in-depth data reports on customers' behaviour.
The whole process may seem a bit complicated, considering the number of options Magento provides. However, in this article, we'll guide you through all the steps you have to take.
In order to configure customer accounts in Magento 2, navigate to Stores > Configuration > Customers > Customers Configuration. As you can see, there are a lot of sections you'll needihor
Configurable products definitely stand out in the list of other . They come in handy when you want to provide your customers with multiple product options.
By default, Magento 2 doesn't allow you to assign the existing to the existing from the admin panel. The only option is to create a so-called placeholder in the configuration and then add the product you need instead of it.
That kind of solution is not really helpful, since it requires too many unnecessary steps. That is why a programmatic way to perform this task might of more use.
So, to add a simple product to a configurable product in Magento 2 programmatically, refer to the method below.
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$simple_product = $objectManager->create(\Magento\Catalog\Model\Product::class);
$simple_product->setSku('test-simple');
$simple_product->setName('test name simple');
$simple_product->setAttributeSetId(10);
$simple_product->setSize_general(193); // value id of S sizeihor
Google search results are becoming more elaborate than ever to deliver the almost experience to searchers. If you know how to leverage it to your benefit you'll be able to drive more traffic to your store and establish a better relationship with search robots.
HowTo structured data is a markup you use to explicitly tell Google that your pages are how-tos. While it might not be among the most , it is quite important for content pages if you want to make them eligible for rich results.
Just like any other type of structured data, you will have to add the HowTo markup using JSON or microdata. To save from the hassles of code editing, we've added the HowTo rich snippet widget to the to help you add it directly from the admin.
Eager to find out how it works?
To add HowTo structured data in Magento 2:
1. Navigate to the page you'd like to add the HowTo markup to and jump to the Content section.
We've added the markup to the CMS page, but it could be a product, category, or any other how-toihor
Managing can be overwhelming, especially when the holiday season is just around the corner. If you want to display different CMS blocks based on sales, be ready for a lot of repetitive enabling/disabling. Unless you use the Magento CMS Block scheduler.
In this guide, you'll learn how to schedule CMS blocks in Magento and see when it comes in handy.
Key takeaways
Magento CMS block scheduler is a tool that lets merchants schedule CMS content by time, customer groups, store views, or cart conditions.
The default Magento doesn't offer CMS block scheduler out of the box.
The extension by Magefan enables CMS block scheduler in Magento.
Magefan Extension also enables a scheduler for CMS pages.
What Is Magento CMS Block Scheduler?
Magento CMS Block Scheduler is a feature that allows merchants to show or hide CMS blocks automatically based on a predefined schedule or different cart or customer rules. It allows store owners to automate promotion campaigns and plan content for sales aheadihor
While product attribute is an individual characteristic of a product, is a group of those characteristics that define a product. You will use product attributes every time when creating products in Magento.
If you need to create multiple product attributes, doing this via the admin panel might require a lot of time. So in case, you need to do it fast, create an attribute set in Magento 2 programmatically.
Note: before you create attribute sets you have to create product attributes. So you might need to have a look at our guide on .
Use the following code to create an attribute set programmatically. Create the InstallData.php file in the app/code/Vendor/Module/Setup/InstallData.php.
<?phpnamespace Vendor\Extension\Setup;
use Magento\Framework\Setup\InstallDataInterface;use Magento\Framework\Setup\ModuleContextInterface;use Magento\Framework\Setup\ModuleDataSetupInterface;use Magento\Catalog\Setup\CategorySetupFactory;use Magento\Eav\Model\Entity\Attribute\SetFactory as AttributeSetFactory;ihor
While creating new accounts, your customers have to fill in some of their personal information. Depending on the policy of your store, you can add or remove the fields that contain customer name and address data and set them up according to your needs.
are very flexible in this regard. So, in this article, we'll explain how to do that.
To configure customer name and address options in Magento 2, take the following steps:
1. Go to Stores > Settings > Configuration > Customers > Customer Configuration > Name and Address Options.
Note: You have to clear the Use System Values checkboxes to configure all the fields, or you can enable those checkboxes to use the default options.
2. Enter the Number of Lines in a Street Address. The default value is 2, however, you can use a different number on the scale from 1 to 4.
3. In the Show Prefix field, choose either Optional or Required to use the name prefix in the new customer account forms. You can disable the feature by choosingihor
Product attributes are characteristics of a product that help you offer customers a wide range of options and influence their purchasing decisions. Once you , it doesn't end there. You can also use product attributes to define , cart price rules, , and multiple other options.
That being said, it is important for you to know how to create product attributes in Magento programmatically. Just in case you'll need to create multiple attributes faster.
To create product attributes in Magento programmatically create the InstallData.php file in the app/code/Vendor/Module/Setup/InstallData.php.
<?phpnamespace Vendor\Module\Setup;
use Magento\Eav\Setup\EavSetupFactory;use Magento\Framework\Setup\InstallDataInterface;use Magento\Framework\Setup\ModuleContextInterface;use Magento\Framework\Setup\ModuleDataSetupInterface;
class InstallData implements InstallDataInterface{ private $eavSetupFactory;
public function __construct(EavSetupFactory $eavSetupFactory) { $this->eavSetupFactoryihor
It is crucial to use the correct technics to keep your clients engaged and drive more of them to your store. Since it all comes down to customer experience, you have to optimize all the processes during the customer's journey on your website, including customer account options.
Fortunately, Magento 2 gives you multiple features for the configuration of new customer accounts. And in this article, we'll provide more details about them.
To configure new customer account options in Magento 2 take the following steps:
1. Navigate to Stores > Settings > Configuration > Customers > Customer Configuration > Create New Account Options.
2. Choose whether to Enable Automatic Assignment to Customer Group.
3. If you chose Yes in the previous field, set the Default Group to which your customers will be assigned automatically.
Note: if you enable no customer will be created. So, no customer group will be assigned to them unless you .
4. Set the Default Value for Disable Automatic Groupihor
Related products are one of the most common ways to drive more sales in e-Commerce. You have to manually or automatically through the to increase the average order value. But there is one more way. You can get related products collection in Magento programmatically.
So if you want to avoid monotonous manual configuration of related products in Magento, keep reading.
To get related product collection in Magento 2:
1. Create an Extension.php file at app/code/Vendor/Extension/Block folder.
<?phpnamespace Vendor\Extension\Block;
use Magento\Framework\View\Element\Template;use Magento\Backend\Block\Template\Context;use Magento\Framework\Registry;
class Extension extends Template{ protected $registry; public function __construct( Context $context, Registry $registry, array $data = [] ) { $this->registry = $registry; parent::__construct($context, $data); } public function _prepareLayout() { return parent::_prepareLayout(); } public function getCurrentProduct() { return $this->registry->registry('current_product');}ihor
Magento 2 offers you outstanding features for stock management. Except for the global , you can also benefit from the advanced settings.
Thanks to the Magento advanced inventory, you can track quantities of multiple products and manage inventory more efficiently on a per-product basis.
Depending on your requirements, there are two ways to configure advanced inventory in Magento 2. You can either exclude stock management (short form) or include stock management (long form). The difference is in the number of options you can configure for an individual product.
In this article, you will learn how to configure Magento 2 advanced inventory using both of these methods.
To configure Advanced Inventory in Magento, go to Catalog > Products, choose a product you would like to set up advanced inventory for and press a corresponding button under Quantity.
Exclude Stock Management
1. Set the Manage Stocks field to No.
2. Complete the Minimum Quantity Allowed in Shopping Cart.
3. Specify theihor
Every order in Magento 2 goes through a lot of stages before it is marked as "Complete". While it is barely noticeable to your customers, you have to know everything about the , to determine if something's off.
So, in this guide, you'll find out more about the Magento 2 order status and state. We'll cover how to create order status in Magento 2 and assign it to state. You will also learn how order status changes in the order processing workflow.
Difference Between Magento Order Status and State
If you just start to learn Magento it will be difficult to tell the difference between Magento 2 order status and state.
In reality, it is not as confusing as it seems. Orders state defines the position of the order in the order processing workflow.
There are the following order states:
Magento 2 order status defines the state of the order in detail.
e.g. processing order state can be defined by processing invoice or processing shipment order status.
Besides, order statuses are displayedihor
in Magento is a great way to keep all of your store data, both retail and online, organized and structured. It enables you to track performance, orders, and staff sessions in one place while offering a seamless checkout experience in your retail store.
Nevertheless, that experience is determined not only by how well POS software performs but how effectively can your cashiers operate it.
Thanks to the intuitive design, "clean" and simple interface, there is little to no learning curve for your sales agents. So, in this guide, you'll learn how to manage system in your retail store to complete orders in seconds.
Note: to log in to the POS system you first need to create the , and assign the to a certain location. Besides, find your POS storefront via mydomain.com/pos/.
1. Start a session
When you log into the POS, you see a session panel with the terminal name, date, and time it was opened and closed. Besides, you see the amount on open/close and the amount taken/put in. ihor
2022 is almost over. Honestly, it wasn't an easy year for us, all Ukrainians. However, we are still grateful for it, for the opportunity to live and do what we love here in Ukraine. That’s why we’d like to share the short timeline of events and accomplishments at Magefan during 2022.
January
The first month was a great start, full of countless ideas and plans for the year. We also prepared for switching to a different - where we kept the one-time payment model and continued to provide access to all new releases and free support for 365 days.
February
We were working on new releases and clients' projects the whole month till the 24th of February. Every Ukrainian will remember this dark day as the worst day in their lives when russia attacked our beloved country with missiles and tanks. For the next few days of that month, all our team members were out of the office moving to safe places with their loved ones and waiting for the unknown brought by this horrible war. Andihor
HubSpot is a flexible software platform, that serves as a boosting tool for your company's marketing strategies and effective sales. Since it's cloud-based, you can easily access your data, follow the latest profitable marketing trends and host multiple services in one place, including a blog.
A blog is undoubtedly an excellent tool for improving customer experience and generating client interest in the services you provide. However, instead of managing a blog separately from your online store, you can have all data gathered in one place.
With our you get a variety of adaptable options and user-friendly functionality on top of managing your store within one instance.
So, in this guide, you'll find out how to import your HubSpot Blog to our Magento 2 Blog.
Note: import from HubSpot Blog is available only in the edition.
How to Import Blog from HubSpot to Magento
Use the following steps to import your HubSpot Blog to Magento 2 Blog.
1. Go to Content > Blog > Import > Importihor
Having a set up is not sufficient for your POS system to function properly. Same as in the eCommerce store, there should be someone who processes the orders. In your retail store, cashier is a person that performs many vital functions from accepting payments to applying coupons and updating prices.
Cashiers in are assigned to certain stores and correspondingly can operate certain terminals. It helps you to track each cashier's performance with the Z-reports and restrict their access to particular .
The role of a cashier in Magento POS is performed by the admin users. You just have to create a cashier role for them like you would when creating any .
To create a cashier in Magento 2 POS:
1. Create a user role.
Go to System > Permissions > User Roles and press the Add New Role button.
Specify the Role Name and Your Password.
Move to Role Resources and choose Resources your cashiers will have access to.
Note: if you don't want your cashiers to have access to anything except POS resourcesihor
Terminal essentially refers to the card reader you need to accept payments in your offline store. It enables you to accept card or contactless payments that are considered more secure than cash.
Although the terminal is a must-have hardware required by a , accepting payments is not the only feature it comes down to. Our system also enables your to track each terminal performance with the X-reports and monitor cashier sessions.
So, in this guide, you'll learn how to create terminals for Magento 2 POS and how to track their performance.
However, first, you need to make sure to which you will be creating a terminal for.
To create POS terminal for Magento:
1. Navigate to POS > POS Terminals and press the Add POS button to add a new terminal.
2. Specify the POS Name.
3. Choose the Store which you want to assign a terminal for.
4. Enable a terminal and don't forget to Save it.
Once you assign a terminal to a particular store, store staff will be able to choose a certainihor
Managing multiple offline stores is easier if you have information about all of the stores in one place. You can track each store's performance via a specific period with reports and assign cashiers to monitor their performance as well.
Besides, you can print receipts with specific store location details and centralize all store data. All this is possible with the .
So in this guide, you'll learn how to create POS locations in Magento. Each cashier or store staff assigned to a specific store will be able to log in only to a specified store location and from there.
To create POS location in Magento 2:
1. Navigate to POS > Store Locations and press the Add Store Button.
2. Fill out the Store Information, which includes:
Store name
Contact email
Contact phone
Street
City
Country
State/Province
Zip/Postal code
Once you save the store location, you have to and to this store location. So, once they log in to POS, they will be able to choose a corresponding location and terminalihor
In this article, we describe the GraphQl queries for getting the necessary auto-related rule data for Progressive Web App (PWA). To implement the GraphQL resolver you need to install .
Besides, you can easily check those queries with the ChromeiQL extension for Chrome Browser.
Related Product Rule GraphQL Request
With this query you will get all related products using rule ID (products that fall under the rule conditions).
Query:
query mfAutoRelatedProducts ($ruleId: Int $productId: Int $categoryId: Int $pageSize: Int $currentPage: Int) {
mfAutoRelatedProducts(
ruleId: $ruleId
productId: $productId
categoryId: $categoryId
pageSize: $pageSize
currentPage: $currentPage
){
total_count
items{
products{
id
name
sku
}
category_ids{
category_id
}
customer_group_ids{
group_id
}
store_ids{
store_id
}
id
name
description
status
priority
block_position
merge_type
from_one_category_only
only_with_higher_price
only_with_lower_price
conditions_serialized
actions_serialized
block_title
sort_byihor
When it comes to creating products in Magento, help you to provide customers with a choice. They help customers choose between some product options without relying entirely on product attributes.
While different product types can share the same customizable options, you still have to set them for each item. And imagine some of those options change. You would have to go and update them for each product.
What if we offered you a solution to update custom product options in bulk?
This solution is the extension that will enable you to edit custom options for one product and then copy them to multiple other products.
So, let's see how it works.
To copy custom product options in Magento 2:
1. Go to Catalog > Products and check all products you need to copy the custom options to.
2. Choose Copy Custom Options from the Mass actions dropdown and specify the ID of the product you are copying the custom option from. (in our case it's Joust Duffle Bag - ID 1).
Onceihor