Monthly Archives: November 2022
Hello, Magento fans,Â
Have you managed to get your favorite Magefan extension with a super discount this November?
This month has been full of new features and updates. One of the greatest — all Magefan extensions are now fully compatible with the Hyvä theme.
New features of the Better Magento 2 Checkout Extension!
Great news! Your checkout will be even more convenient now. We’ve added compatibility with Stripe, an online payment processing platform and Magento 2.4.5.
Add icons to payment methods, set default payment and shipping methods, and improve the overall checkout experience for your customers!
Â
Â
New features of Magento 2 Automatic Related Products!
Compatibility with the Hyvä theme is what you might have been waiting for — and we’ve made it! Additionally, we’ve added the rule duplication option and some minor code improvements in the Translation Plus version.
So, from now on you don’t have to create auto-related
Image optimization is one of the important steps you need to take to speed up Magento 2 and provide a better experience to your customers. There are multiple ways you can optimize images in Magento, the main being lazy loading.Â
It allows you to delay the loading of offscreen images which boosts page speed correspondingly. However, in case you don't want to lazy load some images to be lazy loaded (those at the top of the page), you can do this with the Magento 2 Lazy Load Extension.Â
How to Exclude Images from Lazy Load Automatically?
Navigate to Stores > Configuration > Magefan Extensions > Lazy Load. If you choose to lazy load ALL blocks, define the Lazy Load Block and set First Images To Skip from these blocks in a corresponding field.
The extension will automatically exclude entire blocks or only some of the first images in these blocks from lazy loading.Â
How to Exclude Images from Lazy Load Manually?
If you want to exclude any particular images from lazy loading, simply add
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 managing orders in Magento.
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
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 get current product and current category 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
<?php
namespace 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();
Magento allows you to create and configure 6 different product types in the admin panel. Each product has a unique name, ID, and other details related to it. So, after you learn how to get current category, 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 Registry.
<?php
namespace 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 data
if ($currentProduct = $example->getCurrentProduct()) {
echo $currentProduct->getName() . '<br />';
echo $currentProduct->getSku() . '<br />';
echo $currentProduct->getFinalPrice() . '<br />';
echo
Magento is very straightforward when it comes to processing orders in the admin, which can't be said about the customers' side. However, unfortunately, customers can frequently change their minds right after making a purchase and might want to cancel their shipment. So, it is important to know how to cancel shipments in Magento 2 to ensure seamless management and uninterrupted order processing.
While you can cancel orders in Magento, there are some restrictions when it comes to shipments. In fact, everything depends on the carriers you are working with and the limitations they set.
e.g To cancel a shipment with UPS you have to wait 24 hours after a shipment is booked. Using FedEx, on the other hand, you can cancel a shipment within 12 hours or before the ship date, which is usually printed on the label.
If you want to know how to cancel a shipment in Magento, then keep reading! We'll explain everything.
How to Cancel a Shipment in Magento?
To cancel a shipment in Magento:
1. Go to Sales
Although the Shopware WebP extension enables you to convert png, jpg, and gif files to webp format automatically, you might still need to exclude some images from WebP conversion. This extension enables you to remove entire folders or specific images from being converted to WebP.Â
We'll show you both methods, so you can use the extension extensively.Â
Exclude Image Folders from WebP Conversion
Shopware WebP extension has a separate option that allows you to exclude certain image folders from conversion. For that, you have to navigate to Extensions > My extensions and find WebP among the list of your extensions.
Click on Configure and find the Excluded Folders field in the General section. Here you have to specify the relative path to the image folders you don't want to convert to WebP.
Don't forget to Save the changes once you finish.Â
Exclude Specific Images from WebP Conversion
To exclude some specific images from WebP conversion you have to add the data-webpconverted="1" attribute
When it comes to website loading speed, even the slightest details like images can cause a delay and scare off your potential customers. Since it is the least desired outcome, you have to optimize your images, so they load faster. One of the best ways to do that is by implementing the modern file format — WebP — recommended by Google and accepted by almost every browser.Â
 You might use the online WebP converter to convert images to WebP and then upload them to your Shopware store. But you'll have to run them through that converter every time you upload new images. Not only is it time-consuming, but also ineffective, as not all browsers support Webp images yet.Â
You don't want any of your visitors to see broken images, do you?
The Shopware WebP extension will enable you to improve your website loading speed and convert images to WebP format automatically in a few clicks.
To convert images to WebP in Shopware:
1. Install Shopware WebP Extension, navigate to Extensions > My extensions
If you decided to remove Shopware WebP Extension by Magefan, please follow the steps below, also 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 WebP extension has been installed in.
1. If you can find the extension files in the folder
custom/plugins/MagefanWebP
then run the following command:
bin/console plugin:uninstall MagefanWebP
Then remove this folder and run:
bin/console plugin:refresh
bin/console cache:clear
2. If the extension was installed via the composer and its files located in the folder
vendor/magefan/shopware-plugin-webp
then run composer CLI command to remove it
bin/console plugin:uninstall MagefanWebP
composer remove magefan/shopware-plugin-webp
If you need to update Shopware WebP Extension by Magefan, please follow the steps below. Note that the update instructions depend on the method the WebP extension was installed with.
Update using composer (Method 1)
If the WebP module was installed via the composer (check if vendor/magefan/shopware-plugin-webp folder exists), then you need to run these simple CLI commands in Shopware directory:
composer remove magefan/shopware-plugin-webp
composer require magefan/shopware-plugin-webp ^x.x.x
# replace x.x.x with the version you want to use
bin/console plugin:refresh
bin/console plugin:install --activate MagefanWebP
bin/console cache:clear
To install Shopware WebP Extension by Magefan, please use one of these installation methods.
Installation Method 1 - Installing via Composer (Recommended/Easier)
Please navigate to your Magefan Account > My Downloads > Install via Composer to get the composer installation instructions.
Although related products in Magento 2 require manual management, you don't have to worry about it with the Auto Related Products Extension 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.
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 configure recently viewed/compared products, 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
Once you know how to get URLs in Magento 2, 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
<?php
namespace 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 ObjectManager in your code since it hides real dependencies of the class.Â
So, as you can see, getting current
Customer support is extremely important if you want to keep your customer experience levels high. So, if you want to be able to log in to customer accounts outside your Shopify store admin (like your CRM, helpdesk, etc.), you can do this using the Shopify Login as Customer API keys.Â
To get the public and secret keys required for this, you need to:Â
1. Find the Login as Customer app in your store Shopify admin and go to the API Keys at the top right corner of the customers' list.
2. Copy your Public Key.Â
3. Generate new Secret Key if you need.Â
Now that you have your Shopify Login as Customer API keys, you can use them to extend the CRM or helpdesk you want to be able to log in to customer accounts from.
Assist customers faster, logging into their accounts without a password with a handy Login as Customer App.
Efficiency is key when inventory management is concerned. If you manage Magento MSI 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. Magento 2 Extended Product Grid & Mass Action 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.
Customer support is improved significantly with the Shopify Login as Customer App since you can assist customers in placing orders and fixing account-related issues timely. But that's not it.
Shopify store admin is not the only place where you can log in to your customers' accounts from. You can also log in to customer accounts from your CRM or helpdesk, etc. (if they allow you to extend them and run requests to custom API that comes with our app).
But even this is not the only thing custom API allows you to do.Â
Today we'll consider different scenarios.Â
Log in to Customer Accounts
You can log in to customer accounts using API in 2 different ways.Â
Note: the following code is written in PHP, but you can use any other programming language.
Log in As a Customer using the Customer ID
<?php
$publicKey = '****************';
$secretKey = '***********************************';
$shop = '**********'; // for example 'myshop.myshopify.com';
$customer = '**********'; //for example 123456789;
?>
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 Magento is one of the most popular e-commerce platforms 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
If you are a store owner, you probably know that it is not easy to manage orders in Magento 2, 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.
Magento 2 Multi Source Inventory is a useful feature that's been released with Magento 2.3. You can not only create Magento sources and add them to stocks 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
Logging in to the customer account in Shopify without the login data saves you the time and resources required for solving customers' requests. You can help customers place orders or timely assist in fixing any issues related to the customer account with the Shopify Login as Customer App.Â
However, sometimes you might face the "Incorrect email or password" issue after being redirected to the login page instead of a customer account.Â
It happens when you don't use Multipass and customers haven't requested your assistance, but you still try to login as customer.Â
What you can do to finally login to customer account in Shopify?Â
There are 2 options you have here:Â
- Ask the customer for assistance
- Change customer password and login
If you ask customers for assistance, they can do it in their accounts.
After the account assistance is granted, you can log in to the customer account once again with no issues.
In the second case, you'll change the customer login and password which they will