How To

How to Fix Theme Switching Error in Magento 2.2.x

Theming is something that changes the whole shopping experience of your store with a topping of some stylish design elements and features that your default Magento store never had. But every time when you upgrade to latest Magento 2.x version, you will face some issue or difficulties while using your Magento store functionality. But due to its wide developer community issue will no longer remain unsolved.

Recently, after upgrading to latest Magento 2.2.x lots of store owner are facing a theme switching issue with an error like “something went wrong while saving this configuration. The area is already set.” Basically, this issue comes from the default Magento core to fix it quickly, we can create an extension that will allow us to switch theme and apply our favorite theme on store frontend. The first file we need to create is di.xml inside out extension folder at below path.
app\code\Vendor\Extension\etc\di.xml





 
 
         

After that, we need to create another the file to override method in AbstractTemplate.php.
app\code\Vendor\Extension\Model\Magento\Email\AbstractTemplate.php


Feel free to ask questions regarding this code.
Happy Coding!
Click to rate this post!
[Total: 4 Average: 4]
Dhiren Vasoya

Dhiren Vasoya is a Director and Co-founder at MageComp, Passionate 🎖️ Certified Magento Developer👨‍💻. He has more than 9 years of experience in Magento Development and completed 850+ projects to solve the most important E-commerce challenges. He is fond❤️ of coding and if he is not busy developing then you can find him at the cricket ground, hitting boundaries.🏏

Recent Posts

What are Net Sales? How to Calculate Your Net Sales?

In the world of business, understanding financial metrics is crucial for making informed decisions and…

2 days ago

Magento 2 Extensions Digest April 2024 (New Release & Updates)

Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…

2 days ago

The ABCs of Geofencing: Definition, Features and Uses

In this era, businesses are always on the lookout for ways to engage with their…

3 days ago

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

4 days ago

6 Innovative Tools Revolutionizing E-Commerce Operations

E-commerce has transformed the way consumers shop for products and services and interact with businesses.…

6 days ago

How Upcoming Cookie Changes Will Affect Your E-commerce Website?

The e-commerce world is constantly in flux. New tech and strategies emerge daily to help…

6 days ago