Let’s say your store operates in multi currencies like Euro, US Dollar and Singapore Dollar and your customers can pay in any of these. How do we define which is a default currency and how can we make more than 1 currency allowed in the store?
If you are building a module and you encounter a block that cannot be referenced by name then you probably need to create a plugin to overwrite the template. This can be achieved in three simple steps.
Blocks and Containers are heart of layout. Whenever we want to customise the page layout we do change in layout files or alter templates. Today we gonna list down all the attributes used in the layout xml.
It is very common requirement that we need to create a custom page for new campaigns. But the layout of that page is different from the website generic pages layout.
Virtual types are a way to inject different dependencies into existing classes without affecting other classes.
Use the arguments and argument nodes. These call setData on the block. As such, you can retrieve these values later by calling the getData() method.
Create a custom URL structure in Magento 2 using RouterList.
Change your Magento admin URL from the default “/admin”, to something more unique and very hard to remember.
We always have a requirement to get value from `core_config_data` table in Magento 2. Magento uses ScopeConfigInterface to read config values from database.