Page 21 - Blog
News, insights and resources from the world of e-commerce
- 3 min read
Magento is a vast platform with a lot of features and code correspondingly. So, the same as in any other eCommerce platform you will encounter errors.
Magento Invalid Form Key. Please refresh the page is one of the most you've probably come across. It can appear when you:
install Magento 2 extension
create an account on localhost
with multiple child products
add a lot of related, to any of the products
save an attribute with multiple options
assign a lot of related products and posts to a blog article
So, basically, "Magento Invalid Form Key. Please refresh the page" error appears when a big amount of data is passed to the server when you submit a form.
This guide will help you to understand the reasons behind Invalid Form Key. Please refresh the page error in Magento and how you can easily fix it.
Why "Invalid Form Key. Please refresh the page" Error Appears?
Though you can face this error while performing different tasks on your Magento installation, there are always only 3 reasonsihor
- 7 min read
To drive sales and provide a personalised customer experience, every decision you make should be driven by data. That's what tools like Google Tag Manager come in handy.
To add Google Tag Manager in Magento means getting insights about customer behaviour, product performance, checkout and cart and using it in multiple marketing channels.
In this guide, you'll learn how to install the GTM script and how add Google Tag Manager to Magento using the Magefan .
Key takeaways
Installing the Google Tag Manager script in Magento is done via Content > Design > Configuration > Theme > Head > Scripts and Style Sheets.
Adding the GTM script doesn't enable Google Analytics 4, you need to do it separately via Sales > Google API.
By default, Magento supports onlythe GTM web container (GTM script).
Adding the Google Tag Manager script to Magento doesn't create tags, triggers and variables automatically.
To create events in GTM automatically, install Magefan Google Tag Managerihor
- 11 min read
Magento shopping cart is a key step in your checkout process, and unfortunately, the one where customers are very likely to drop off. Things like unexpected costs, confusing navigation or incorrect product images can cause many people to abandon the cart.
That's why it's crucial to understand and optimise your cart settings to avoid abandonment and .
In this guide, you'll discover the key features of the Magento shopping cart and how to set it up the "right" way. We'll also cover how you can manage and optimise your cart for the best user experience.
Benefits of Magento Shopping Cart
As we've already said, the shopping cart plays an important role in the customer's journey.
When configured properly, it can bring tons of benefits for you and your customers.
Benefits for merchants
Perhaps you haven't even thought about any benefits except sales here. However, the Magento shopping cart brings more than that.
Increased sales: you can show related products in your cart based on the chosen onesihor
- 5 min read
Magento provides you with great functionality to sell and be discovered online. However, to make the most of it you have to explore different shopping channels. Luckily, there are plenty to opt for. Comparison lists, product directories, and world-famous marketplaces. All help you expose your products to a wider audience and .
How do you get all of your products there?
Obviously, not by uploading each and every single one of them separately. It will take you numerous hours to do manually. Instead, you can use the product feeds for Magento and reduce this process to minutes.
As you might have already guessed, in this article we've gathered the for Product Feed. So, skim through to choose the most suitable one for your store needs.
Comparison: Best Product Feed Modules for Magento
Vendor
Extension Name
Price
Guarantees
Rating
by Magefan
$99.00
100% Open Code
30 Days Money Back Policy
365 Days Free Support
365 Days Free Updates
5 ⭐⭐⭐⭐⭐
17 reviews
Advanced Product Feeds for Magentoihor
- 9 min read
A successful business is not only a business people buy from, it is a business people can trust. One of the factors that can undermine that trust is security.
It's precisely relevant for Magento since attackers work restlessly to use any . Thus, no measures taken to improve security are redundant.
Magento 2 reCAPTCHA is a great built-in feature you can use to create a safe environment for your customers and admin users. Besides, the platform offers Google reCAPTCHA integration for an additional security layer.
In this guide, you'll learn how to set up both Magento and Google reCAPTCHA for your store and make it a much safer place. For those who want to monitor CAPTCHA more closely we offer the .
What is CAPTCHA?
CAPTCHA is a challenge-response authentication and a security measure that consists of a randomly generated sequence of numbers and letters in a distorted image, which you have to type into the text box.
It is a simple test that stands for "Completely Automated Public Turing testihor
- 5 min read
In eCommerce, you can't guide your customers through the rows of shelves to assist with making a purchase. That's why you have to provide the best real-like experience, so they can make that decision on their own.
There are multiple used in different kinds of stores to make shopping a breeze. However, when it comes to apparel, jewelry, eyewear, home, and any other goods where size is relevant, size charts really come in handy.
They help to increase sales and reduce the refund rates because your customers know the measurements of the products before the purchase. Size charts help you exceed your customers' expectations so that you're both satisfied with the outcome.
In this article, we've gathered the best Size Chart modules for Magento 2 for you to consider. While they serve the same function, they all provide some distinctive features that benefit you.
Let's dive in.
Comparison: Top Size Chart Modules for Magento
Vendor
Extension Name
Price
Guarantees
Rating
by Magefan
$149.00
100%ihor
- 5 min read
Website speed is a crucial factor for ranking high in SERP, getting new customers, and improving conversion rates in general. It is also extremely relevant to the overall experience of your customers.
While website speed influences a lot of things, multiple factors slow it down which requires your attention constantly.
The one we want to cover today is Magento 2 full page cache that is provided by default.
In this guide, you'll learn everything you need to know about Magento 2 full page cache and how it works. It will enable you to with the free caching solution Magento goes with.
Let's start with the basics.
What is Full Page Cache in Magento 2?
Magento 2 full page cache is the free built-in Magento 2 caching solution that allows you to reduce the server load time and improves the response time due to the fast loading of CMS, product, and catalog pages.
As we've just mentioned, the full page cache is enabled in Magento 2 by default due to the PHP reverse proxy that is an intermediary betweenihor
- 3 min read
Magento admin security is one of the most important things on your website to pay attention to. Even if you have an extensive customer database and great conversion rates, one security breach is enough to ruin all of that.
Though the platform has a comprehensive approach to security, you have to cover all of the smallest details to . You can never overdo it.
In this article, we want to talk about Magento admin security and how you can configure it to avoid brute force attacks and other malicious actions.
Step 1: Configure Magento Admin Security Options
1. Navigate to Stores > Configuration > Advanced > Admin > Admin Security.
2. If you want to prevent admin users from logging in from different devices disable the Admin Account Sharing option.
3. Choose the method to manage password reset requests in the Password Reset Protection Type select box.
By IP and Email — admin user can reset their password in the online mode after a reset notification response is sent to the emailihor
- 5 min read
Email is one of the oldest and most effective ways to streamline store-customer communication. In particular, transactional emails such as account registration, reset password, order confirmation are essential to every Magento 2 store.
By default, transactional emails are sent using server mail configurations. However, unfortunately, they often do not work, or merchants want to use third-party SMTP services that ensure precise email deliverability.
Magento 2 SMTP Extension bridges the gap between untrustworthy default server mail configurations and successful email delivery in case your server doesn't provide SMTP configuration by default.
There are multiple modules to choose from. However, in this article, you'll learn about the best for SMTP integration to consider for your store.
Without any further ado, let's get to the specifics.
Comparison: Best Magento 2 SMTP Extensions
Vendor
Extension Name
Price
Guarantees
Rating
Magento 2 SMTP Extension by Magepal
Free
No guarantees Github Moduleihor
- 4 min read
Hello there, Magento fans!
Today we have prepared the last but not the least News and Updates digest of the year from Magefan.
So, catch the last Magefan news and updates!
With the constant cycle of updates and new releases of our extensions, it should be understood that not every version of Magento 2 platform can remain supported forever. We would like to notify all our customers that Magento v2.2 will no longer be supported starting from January 1, 2022.
This means that no updates, no fixes, no new versions will be available for Magento 2.2 version. If you still use this version we strongly recommend you to update it to the latest version (2.4.3v) to be able to enjoy smooth and uninterrupted work of all Magefan extensions for Magento 2.
And now let's move on to the module updates.
New extension has been released!
If you want to improve your customer engagement - you definitely need this tool in your arsenal. This extension integrates Magento 2 Blog by Magefan and Magento 2 AMP extensionihor
- 1 min read
Coupon Code Links in Magento boost your sale campaigns and allow you to improve customer shopping experience in your store. They help to apply coupon codes automatically and avoid redundant steps in customer's journey.
To enable them on your store you need to extension first.
Once the extension is installed, all you need to do is configure it.
To Configure Coupon Code Links in Magento 2:
Go to Stores > Configuration > Magefan Extensions > Coupon Code Link > General.
Enable the extension.
Upload the Popup Image that will appear along with the Success Message you enter.
In case the coupon code is not applied, you need to specify the Error Message text.
Don't forget to Save Config and start creating automated coupon codes. Check this guide on how to , and learn more about the coupon code link and where to apply it.
- 2 min read
Coupons play a vital role in every sale and special offer you provide on your Magento store. Even though Magento provides you with the by default, you should look for ways to auto apply coupons in Magento.
Usually, when you display discount codes in CMS blocks or add them to banners, customers have to manually type or copy and paste coupon codes on checkout.
Applying coupon codes automatically in Magento reduces the steps required to apply the coupon and increases the chances of people actually applying it.
So, what you need in this case is Extension. We'll show you how easy it is to auto apply coupon codes in Magento using this quick solution.
Auto Apply Coupon Codes in Magento
Start setting up the cart price rule.
Enter the Coupon Code you'd like to use and get the Coupon Code Link generated automatically.
The coupon code contains two important elements we want to point your attention to — coupon code and redirect URL. Once customers click on the link they will be redirected to theihor
- 2 min read
Running a requires a lot of work in various aspects. One of them is translating your content so that customers receive a seamless experience.
While you will probably and categories first, you shouldn't forget about the CMS pages and blocks.
So today you'll learn how to translate CMS blocks in Magento 2, using default setup or third-party tools.
Translate CMS Blocks in Default Magento
Unlike products and categories, CMS blocks don't share the same ID. Thus, to translate them, you simply have to create a new . So, just navigate Content > Elements > Blocks > Add New Block and add a translation for a certain CMS block.
Note: the identifier of the translated block should remain the same as the identifier of the block you are translating. That's required for the right block to be displayed on the right store view.
Next, it's important to select a Store View to assign a CMS block to.
Translate CMS Blocks with the Translation Extension
The biggest drawback when translating CMS blocks in Magentoihor
- 3 min read
Sales season is a great time for you to win customers with the best deals. However, you have to remember that your store is not the only one with something to offer.
That is why you should explore the most effective ways to attract customers. One of them is Magento 2 Buy X Get Y Free sales rule which we're going to cover today.
So, the Buy X Get Y Free is a cart price rule that allows customers to get Y quantity of a product for free if they purchase X quantity of the same product.
Create Buy X Get Y Free in Magento 2
1. Fill out the information.
2. Define the cart Conditions that determine when the rule is triggered (the cart state). If the conditions are not met, the order won't qualify for a discount.
3. Set up Actions.
Select to Apply the Buy X get Y(discount amount is Y) discount.
Specify the Discount Amount. It is the number of products that customers will receive for free.
Enter the Maximum Qty Discount is Applied To to limit the number of items you want to give out for freeihor
- 2 min read
Invoice is an element of the that is as important as the order itself. An invoice is a document that signifies the "agreement" between a store and a person and contains all of the order details.
Usually, order invoices in Magento 2 are created automatically, once the payment was authorized or captured by the store. However, there are cases when you need to create an invoice programmatically in Magento 2.
This is just the case. We will show you how to do this is in just 1 step.
To create an invoice programmatically in Magento 2 create a new model in your module, e.g: app/code/Vendor/Module/Model/CreateInvoice.php with code:
<?php
namespace [Vendor]\[Module]\Model;
use Magento\Sales\Api\OrderRepositoryInterface;
use Magento\Sales\Model\Service\InvoiceService;
use Magento\Framework\DB\Transaction;
use Magento\Sales\Model\Order\Email\Sender\InvoiceSender;
class CreateInvoice
{
protected $orderRepository;
protected $invoiceService;
protected $transaction;
protected $invoiceSender;
publicihor
- 6 min read
Placing orders online significantly differs from the experience customers get when shopping offline. There are a lot of risks included and steps eCommerce customers are afraid to take.
So, the Magento order fulfillment process means making sure customers receive the best shopping experience while you cover the seamless order processing.
In this guide, you'll learn everything you need about order fulfillment in Magento 2. We'll walk you through all of the steps — from receiving orders, creating invoices and shipments to covering refunds, changing order statuses and deleting orders.
We've got a lot to cover, so let's start.
General
Once a customer places an order, it is automatically created in the Magento 2 system. It gets the Pending status which signifies the pending payment. This marks the beginning of the Magento 2 order processing workflow.
Until customers pay, they can change some order information in their account. You as well can also hold or cancel the order from the backendihor
- 1 min read
To set up Elasticsearch 7 on Ubuntu 20.04 please run these simple commands one-by-one in the command-line interface:
sudo apt -y install gnupgwget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -sudo apt -y install apt-transport-httpsecho "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.listsudo apt updatesudo apt -y install elasticsearch//To install a specific Elasticsearch version, specify it in the command:sudo apt -y install elasticsearch=7.10.2
By default, Elasticsearch uses 2GB RAM memory for JVM. If your server has limited memory size you can reduce it to e.g. 1gb or 512mb. To do this edit the jvm.options file, run the command:
sudo nano /etc/elasticsearch/jvm.options
and change the
-Xms2g-Xmx2g
to
-Xms1g-Xmx1g
Save the jvm.options file.
Next, enable and start elasticsearch service, run the commands:
sudo systemctl enable elasticsearch.service && sudo systemctl restart elasticsearch.serviceihor
- 2 min read
The reason why you've landed on this page is the Service Temporarily Unavailable Magento 2 error that appeared when you tried to access your admin or storefront.
Any errors that appear on your Magento 2 store can cost you not only time but money. So eliminating it as quickly as possible is a top priority.
For those who face this error or want to be prepared beforehand, we're going to provide a quick guide.
Why Magento 2 Service Temporarily Unavailable Error Appears?
Error 503 Service Temporarily Unavailable Magento 2 is one of the . It appears when you , or try to set up your Magento 2 store or update Magento.
Service Temporarily Unavailable error is usually followed by the messages like:
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
The server is temporarily unable to handle the request.
This gives us everything we need to understand the reasons behind this message:
server can't handleihor
- 6 min read
Magento 2 product attributes are the properties of the product that help customers filter through the product variations and find the items they need. This correspondingly influences their experience with your store and helps to make a purchasing decision.
In Magento, you can use built-in product attributes or add custom ones. However, when you create product attributes in Magento 2 you can get quite overwhelmed due to many options. But not any more.
Today, you'll learn everything you need to know about Magento 2 product attributes, how to create, use and edit them using the .
What are Magento Product Attributes?
Magento product attributes are certain characteristics of a product in your store. They provide detailed information about a product and serve as criteria for advanced search, product comparison, layered navigation and promotions.
You can create multiple product attributes in Magento. There is no limit. However, each attribute will have only one input type you will assignihor
- 5 min read
Braintree is the all-in-one, fully-customized, fraud-free payment solution that is supported in many different countries around the globe: US, Canada, Europe, Singapore, Hong Kong, Australia, New Zealand, and Malaysia.
Moreover, it allows you to accept payment from various systems like PayPal, Bitcoin, Apple Pay, GooglePay, and other Country and Local payment methods.
No wonder it is one of the most popular along with .
So, here you'll learn how to configure Braintree payment method in Magento and explore all of its options, including Braintree Apple Pay Magento and Google Pay.
To configure Braintree Payment in Magento 2:
1. Complete Basic Braintree Settings
Enter a Title and choose the Braintree Environment: Sandbox or Production.
Note: If you test the payment with sandbox, use card numbers recommended by Braintree, and don’t forget to switch to Production before going live.
Choose the Payment Action.
Authorize — purchase is approved and funds are put on hold until the merchant “captures”ihor
- 2 min read
Magento 2 Preferences is used by the to extend the default implementation. You can use preferences in Magento 2 to implement some interfaces or to rewrite/override the existing PHP classes and their methods.
In this article, you'll learn how to do it and discover useful examples that will help you along the way.
Overriding classes in Magento 2
If you want to rewrite existing class methods with Magento preference follow the steps below:
1. Create the etc/di.xml file in your extension folder:
app/code/MyCompany/ModuleName/etc/di.xml
2. Add this code to it:
<?xml version="1.0"?><config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="Magento\Checkout\Block\Onepage\Success" type="MyCompany\ModuleName\Block\Onepage\Success" /></config>
Use attribute "for" in the "preference" tag to define the PHP class that you want to override. Use attribute "type" to define the PHP class that willihor
