Please Follow Below steps to resolved such error of store switcher :
– Follow the below steps to resolve the switcher issue.
Step 1: You need to override the following file of the vendor module as mentioned below.
Override this File in your module :
1 |
vendor/magento/module-store/etc/di.xml |
Step 2: Replace the following code :
1 2 3 4 5 6 7 8 9 10 |
<type name="Magento\Store\Model\StoreSwitcher"> <arguments> <argument name="storeSwitchers" xsi:type="array"> <item name="cleanTargetUrl" xsi:type="object">Magento\Store\Model\StoreSwitcher\CleanTargetUrl</item> <item name="manageStoreCookie" xsi:type="object">Magento\Store\Model\StoreSwitcher\ManageStoreCookie</item> <item name="managePrivateContent" xsi:type="object">Magento\Store\Model\StoreSwitcher\ManagePrivateContent</item> <item name="hashGenerator" xsi:type="object">Magento\Store\Model\StoreSwitcher\HashGenerator</item> </argument> </arguments> </type> |
with
1 2 3 4 5 6 7 8 9 |
<type name="Magento\Store\Model\StoreSwitcher"> <arguments> <argument name="storeSwitchers" xsi:type="array"> <item name="cleanTargetUrl" xsi:type="object">Magento\Store\Model\StoreSwitcher\CleanTargetUrl</item> <item name="manageStoreCookie" xsi:type="object">Magento\Store\Model\StoreSwitcher\ManageStoreCookie</item> <item name="managePrivateContent" xsi:type="object">Magento\Store\Model\StoreSwitcher\ManagePrivateContent</item> </argument> </arguments> </type> |
Clean the cache and You are done.
[crayon-63d3ef3fccab9759159413/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.