Page 10 - Monthly Archives: 2022
- 5 min read
Social media is a huge field of opportunities for online stores to present their brand to a wider audience. However, have you noticed that Facebook and other platforms don't always pull out relevant content from the links you share?
Social media posts might look inconsistent and even weird, which not only discourages people from clicking but doesn't even catch their attention at all.
So, sharing your products and other website pages on social media benefits you only in one case — you make your posts stand out. And for that purpose, you must explore open graph meta tags.
In this guide, you'll learn everything you need to make your social media posts more clickable and shared with open graph tags.
What are Open Graph Meta Tags and What Do They Do?
Open Graph Meta Tags also known as social media tags are small snippets of code that are part of Facebook's Open Graph protocol also recognized by Twitter and LinkedIn. They define how your website URLs are displayed on social media and other messengersihor
- 3 min read
When selling globally, you have to make sure your customers receive the best shopping experience. The is perhaps one of the first things to pop up in your mind. But Magento multi currency is just as crucial.
It allows your customers to view prices in their local currency in the first place. But what's more important, it helps to avoid cart abandonment and checkout bounce rates. Your customers know exactly how much they'll be charged.
Conveniently, Magento provides you the multi currency option out of the box. So you don't need to install any additional software for this. Magento 2 multi currency setup includes several steps. And in this guide, we're going to walk you through all of them.
Configure Magento 2 Currency Options
When you configure Magento multi currency the first thing to do is set what currencies will be available in your store. Here is how you do it:
1. Navigate to Stores > Configuration > General > Currency Setup.
2. Choose the corresponding options for Base, Default Displayihor
- 3 min read
enables you to benefit from a blog on a rich PWA storefront.
In this article, you'll learn how to install PWA Blog on PWA Studio.
Note: your code might be slightly different than in provided examples, because of different versions of PWA Studio.
Take the following steps to install Magento 2 PWA Add-On for Blog:
1. Make sure that you installed the latest version of (Base, ) and Magefan Blog GraphQL Extension.
2. Upload the src folder from the archive to your PWA Studio root directory.
3. Navigate to your PWA Studio root directory.
4. Add blog static route.
Update local-intercept.js. Replace this line
function localIntercept() {}
with
function localIntercept(targets) {
targets.of("@magento/venia-ui").routes.tap(routes => {
routes.push({
name: "Blog",
pattern: "/blog",
path: require.resolve("./src/lib/magefan/pwa-studio-blog-ui/src/components/Routes")
});
return routes;
});
}
See file example (samples/local-intercept.js).
5. Create component directories.
mkdir -p src/componentsmkdirihor
- 3 min read
Coupon code management in Magento 2 is effective as long as your customers find coupons easy to apply. You can and promote them on your store, in email, or through social media.
By and large, however, you just leave them to chance since you can't track if customers use your coupons. They have to copy and paste or enter it manually on the shopping cart or checkout.
This still doesn't mean they will finalize their orders.
What if we told you that you can automatically apply your coupon code, add products to the cart, and redirect customers to checkout all in one click?
Though it may sound difficult, there is no difficulty in it neither for you nor your customers. makes it a breeze.
So, today you're going to learn more about coupon code widgets and how you can use them to boost discounts. And there are two cases we'll walk you through.
How to Add Coupon Code Widget in Magento?
1. Go to CMS page, block, blog post or any page with the WYSIWYG editor where you want to add theihor
- 4 min read
Sales, , and special offers drive people to your store and help to gain their loyalty. However, the smarter you manage them the more effective they turn out to be.
Magento 2 coupon code is an integral part of every sale on your Magento 2 store. Those codes are applied via the , and you can create them for certain customers, separate customer groups, specific products, and the entire catalogue. Besides, you can do that in bulk or separately.
Sounds quite promising, right?
So, let's teach you how to create coupon codes in Magento.
How to Create Coupon Code in Magento 2?
To create a Magento coupon code take the following steps:
1. Navigate to Marketing > Promotions > Cart Price Rules and press the Add New Rule button.
2. Set the Name for the rule and add the Description.
3. Activate the rule and select the Websites the coupon code will apply on.
4. Specify the Customer Groups a coupon will work for.
5. In the Coupon field, select a Specific Coupon and enter the Coupon Code in theihor
- 2 min read
is a constant flow of customers, orders, shipments, restocking, and other important backend and frontend tasks. While most of these tasks are easy to complete, the real challenge appears when customers make mistakes in their orders. In this case, you need to cancel orders in Magento 2.
So, in this guide, you'll learn how to do that in two different ways.
Why Cancel Orders in Magento?
The most common case when you need to cancel orders in Magento is when there is something wrong with the ordered items or customers just want to return them. Nevertheless, if the reason for the cancelling is not the refund, you can still instead of creating a new order.
For that, you need the . This solution helps you edit any order details from order number, and customer name to ordered items and tax classes.
If you still want to cancel orders in Magento, refer to the options below.
Cancel Order in Magento 2 via Grid and Order View Page
1. Go to Sales > Orders and tick the Orders you want toihor
- 5 min read
Imagine if you have to update currency rates or catalog price rules and generate website sitemaps manually. Seems like an impossible scenario, right? All because all these and many other tasks in your store are already handled for you by the Magento 2 cron jobs.
They schedule different activities and perform them automatically without you even noticing. However, if you want to learn more about your store performance you need to learn more about the cron tasks.
So in this comprehensive guide, we'll cover everything you need to know about Magento cron jobs. You'll discover how they work and how you can directly from the admin panel.
What is a Magento Cron Job?
Magento cron job is one of many tools Magento uses to schedule and run repetitive tasks (such as updating inventory, sending product alerts, or generating sitemaps) instead of triggering them manually.
Cron jobs rely on the crontab (configuration file) to execute the commands and scripts to perform certain operations withinihor
- 3 min read
Did you know that around 47% of consumers expect a page to load in 2 seconds or less? Are you sure the Largest Contentful Paint (LCP) on your store meets that threshold?
If not, you're probably looking for the best ways to to satisfy customers' needs.
Magento 2 lazy load or lazy loading is the concept you're going to learn more about in this guide. in particular, you'll find out what is lazy loading, how it benefits your website, and how you can configure it.
Are you ready to start?
What is Lazy Loading?
Lazy Loading is an on-demand loading technique that aims at optimizing website loading speed through deferred content delivery, images in particular.
The main idea behind the lazy loading is to load only necessary resources at the viewport instead of loading all of them at once. So the website images are loaded only at the visible part of the page while the others — when users scroll down the page.
Since the system only loads the elements customers need instead of loading the wholeihor
- 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
- 3 min read
There are a lot of processes in Magento 2 admin that require automation and scheduling. Updating currency rates, sending newsletters and product alerts are all handled by a handy default feature — .
Besides, plenty of Magento 2 extensions also come with custom cron jobs to execute different tasks within the module. So, if you're wondering how you can create one for your extension too, you've landed in the right place.
Today you'll learn how to create a cron job in Magento 2 step by step.
Note: before creating your custom cron job, make sure you have the crons by opening the crontab as the Magento file system owner. Run the following command:
crontab -l
The result should be as follows:
#~ MAGENTO START c5f9e5ed71cceaabc4d4fd9b3e827a2b
* * * * * /usr/bin/php /var/www/html/magento2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /var/www/html/magento2/var/log/magento.cron.log
#~ MAGENTO END c5f9e5ed71cceaabc4d4fd9b3e827a2b
1. Create a Simple Module
The first stepihor
- 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
- 2 min read
Cart abandonment is one of the eCommerce issues a lot of merchants struggle with. Same as in any other online store, people might leave their shopping carts for reasons you'd never guess.
Still, it is something you have to deal with to improve sales and encourage people to finalize the order. Magento persistent shopping cart is one of the multiple ways you should explore to reduce cart abandonment in your store.
In this guide, you'll learn what it is and how to configure it for your benefit.
What is Magento Persistent Shopping Cart?
A persistent shopping cart in Magento is almost the same as a regular . However, the persistent cart can store products customers added to the cart for a period specified in the configuration, up to one year.
The persistent cookie remains active even after the session cookies expire. This allows keeping track of the cart items after customers sign out of your website.
Moreover, persistent shopping carts follow the customer ID which enables it to synchronizeihor
- 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
