#StackBounty: #magento2.3.4 #mobile-menu How to include catalog.topnav into hamburger menu in mobile view in Custom theme

Bounty: 100

After creating a custom theme that is inherited from a blank theme i am getting an error in mobile menu,

My mobile menu look like,

enter image description here

How to move all my categories into the left hide bar(toggle menu) i mean

enter image description here

any help thanks.

Note (web-view) – Moving element using <move element="catalog.topnav" destination="header.panel" after="logo" />

How to move catalog.topnav into hamburger menu in the mobile view?


Get this bounty!!!

#StackBounty: #magento2.3.4 #mobile-menu Custom theme after move catalog.topnav to header.panel mobile-view category display in same he…

Bounty: 100

After creating a custom theme that is inherited from a blank theme i am getting an error in mobile menu,

My mobile menu look like,

enter image description here

How to move all my categories into the left hide bar(toggle menu) i mean

enter image description here

any help thanks.

Note : Moving element using <move element="catalog.topnav" destination="header.panel" after="logo" />


Get this bounty!!!

#StackBounty: #magento2.3.4 #custom-theme #header.panel How to move custom link right after logo in custom theme?

Bounty: 100

I have created custom link under

appdesignfrontendMyrwdmythemeMagento_Themelayoutdefault.xml

<!-- location added in header -->
<referenceBlock name="header.links">
<block class="MagentoFrameworkviewElementHtmlLink" name="custom-link" before="-">
<arguments>
<argument name="label" xsi:type="string" translate="true"> Custom Link </argument>
<argument name="path" xsi:type="string" translate="true"> customlink </argument>
</arguments>
</block>
</referenceBlock>

Now my custom link placed between customer link and minicart, how should place right after logo?

Workout :

In same path (appdesignfrontendMyrwdmythemeMagento_Themelayoutdefault.xml)

I have added,

<move element="custom-link" destination="header-panel" after="logo" /> 

Its not working, how to solve the issue?


Get this bounty!!!

#StackBounty: #product #magento2.3.4 #product-edit Anyone still facing this issue – After Migrated from magento 1.9 Fatal error – Produ…

Bounty: 50

lib/internal/Magento/Framework/View/Element/UiComponentFactory.php

UiComponentFactory::mergeMetadataElement() must be of the type array,
null given

protected function mergeMetadataElement(array $bundleComponents, $name, array $data, $reverseMerge = false)
{
    if (isset($bundleComponents[$name])) {
        $bundleComponents[$name] = $reverseMerge
            ? array_replace_recursive($data, $bundleComponents[$name])
            : array_replace_recursive($bundleComponents[$name], $data);
        return [$bundleComponents, true];
    } else {
        foreach ($bundleComponents as &$childData) {
            if (isset($childData['attributes']['class'])
                && is_a($childData['attributes']['class'], MagentoUiComponentContainer::class, true)
                && isset($childData['children']) && is_array($childData['children'])
            ) {
                list($childData['children'], $isMerged) = $this->mergeMetadataElement(
                    $childData['children'],
                    $name,
                    $data,
                    $reverseMerge
                );
                if ($isMerged) {
                    return [$bundleComponents, true];
                }
            }
        }
    }
    return [$bundleComponents, false];
}

I am getting following error if i try to edit product from backend,

Fatal error: Uncaught TypeError: Argument 3 passed to
MagentoFrameworkViewElementUiComponentFactory::mergeMetadataElement()
must be of the type array, null given, called in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 384 and defined in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php:337
Stack trace: #0
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(384):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataElement(Array,
‘configurableExi…’, NULL, false) #1
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #2
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #3 /var/www/html/test/lib/internal/Magento/Fram in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 337


Get this bounty!!!

#StackBounty: #product #magento2.3.4 #product-edit Magento 2.3 – After Migrated from magento 1.9 Fatal error: Uncaught TypeError: Argum…

Bounty: 50

lib/internal/Magento/Framework/View/Element/UiComponentFactory.php

UiComponentFactory::mergeMetadataElement() must be of the type array,
null given

protected function mergeMetadataElement(array $bundleComponents, $name, array $data, $reverseMerge = false)
{
    if (isset($bundleComponents[$name])) {
        $bundleComponents[$name] = $reverseMerge
            ? array_replace_recursive($data, $bundleComponents[$name])
            : array_replace_recursive($bundleComponents[$name], $data);
        return [$bundleComponents, true];
    } else {
        foreach ($bundleComponents as &$childData) {
            if (isset($childData['attributes']['class'])
                && is_a($childData['attributes']['class'], MagentoUiComponentContainer::class, true)
                && isset($childData['children']) && is_array($childData['children'])
            ) {
                list($childData['children'], $isMerged) = $this->mergeMetadataElement(
                    $childData['children'],
                    $name,
                    $data,
                    $reverseMerge
                );
                if ($isMerged) {
                    return [$bundleComponents, true];
                }
            }
        }
    }
    return [$bundleComponents, false];
}

I am getting following error if i try to edit product from backend,

Fatal error: Uncaught TypeError: Argument 3 passed to
MagentoFrameworkViewElementUiComponentFactory::mergeMetadataElement()
must be of the type array, null given, called in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 384 and defined in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php:337
Stack trace: #0
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(384):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataElement(Array,
‘configurableExi…’, NULL, false) #1
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #2
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #3 /var/www/html/test/lib/internal/Magento/Fram in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 337


Get this bounty!!!

#StackBounty: #product #magento2.3.4 #product-edit Magento 2.3 – After Migration Fatal error: Uncaught TypeError: Argument 3 passed Err…

Bounty: 50

lib/internal/Magento/Framework/View/Element/UiComponentFactory.php

UiComponentFactory::mergeMetadataElement() must be of the type array,
null given

protected function mergeMetadataElement(array $bundleComponents, $name, array $data, $reverseMerge = false)
{
    if (isset($bundleComponents[$name])) {
        $bundleComponents[$name] = $reverseMerge
            ? array_replace_recursive($data, $bundleComponents[$name])
            : array_replace_recursive($bundleComponents[$name], $data);
        return [$bundleComponents, true];
    } else {
        foreach ($bundleComponents as &$childData) {
            if (isset($childData['attributes']['class'])
                && is_a($childData['attributes']['class'], MagentoUiComponentContainer::class, true)
                && isset($childData['children']) && is_array($childData['children'])
            ) {
                list($childData['children'], $isMerged) = $this->mergeMetadataElement(
                    $childData['children'],
                    $name,
                    $data,
                    $reverseMerge
                );
                if ($isMerged) {
                    return [$bundleComponents, true];
                }
            }
        }
    }
    return [$bundleComponents, false];
}

I am getting following error if i try to edit product from backend,

Fatal error: Uncaught TypeError: Argument 3 passed to
MagentoFrameworkViewElementUiComponentFactory::mergeMetadataElement()
must be of the type array, null given, called in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 384 and defined in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php:337
Stack trace: #0
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(384):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataElement(Array,
‘configurableExi…’, NULL, false) #1
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #2
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #3 /var/www/html/test/lib/internal/Magento/Fram in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 337


Get this bounty!!!

#StackBounty: #layout #static-block #magento2.3.4 #color-swatches show child block under static block in home page in magento 2

Bounty: 100

I want to show color swatches of configurable product in home page
But My all static blocks in cms page.
Here is my static block

{{block class="SmartwaveFilterproductsBlockHomeLatestList" name="latest" aspect_ratio="1" column_count="6" product_count="12" image_width="212" product_type="3" template="grid.phtml"}}

Here is my layout xml code which is working fine to display color swatches in home page but I want to show convert body part in static block.
Should I use addchild() method in LatestList block file ? If yes how ?

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <head>
           <css src="Magento_Swatches::css/swatches.css"/>
    </head> 
    <body>
        <referenceBlock name="homepage.swatchrenderer">
                <block class="MagentoSwatchesBlockProductRendererListingConfigurable" as="configurable" template="Magento_Swatches::product/listing/renderer.phtml" />
        </referenceBlock>     

        <referenceContainer name="main">
          <container name="topproduct" htmlTag="div" htmlClass="topproduct">
                  <block class="SmartwaveFilterproductsBlockHomeLatestList" name="productlist" template="Smartwave_Filterproducts::grid.phtml">
                      <block class="MagentoFrameworkViewElementRendererList" name="homepage.swatchrenderer" as="homepage.toprenderers">
                        <block class="MagentoFrameworkViewElementTemplate" as="default"/>
                      </block>
                  </block>
           </container>
        </referenceContainer>
    </body>
</page>


Get this bounty!!!