move minicart before top.search magento 2.2 The Next CEO of Stack OverflowHow to move Checkout button to the bottom of minicartUnable to process binding Knockout.js magento 2move minicart to after catalog.topnav magento 2Magento 2 Minicart cant remove itemsjquery problem with open minicartHow to move minicart into topbar.phtml?Magento 2: How to replace minicart iconMagento 2 minicart issueMagento 2.2.2 getting error unable to process binding if: function()return getCartParam('summary_count') Move Minicart responsive

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Won the lottery - how do I keep the money?

RigExpert AA-35 - Interpreting The Information

What connection does MS Office have to Netscape Navigator?

Chain wire methods together in Lightning Web Components

Can you be charged for obstruction for refusing to answer questions?

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

Would be okay to drive on this tire?

Reference request: Grassmannian and Plucker coordinates in type B, C, D

Where do students learn to solve polynomial equations these days?

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

Why is quantifier elimination desirable for a given theory?

Why does standard notation not preserve intervals (visually)

Is it possible to use a NPN BJT as switch, from single power source?

Grabbing quick drinks

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

"misplaced omit" error when >centering columns

Are police here, aren't itthey?

What flight has the highest ratio of time difference to flight time?

What did we know about the Kessel run before the prequels?

Is it professional to write unrelated content in an almost-empty email?

How to count occurrences of text in a file?

How to check if all elements of 1 list are in the *same quantity* and in any order, in the list2?

Unclear about dynamic binding



move minicart before top.search magento 2.2



The Next CEO of Stack OverflowHow to move Checkout button to the bottom of minicartUnable to process binding Knockout.js magento 2move minicart to after catalog.topnav magento 2Magento 2 Minicart cant remove itemsjquery problem with open minicartHow to move minicart into topbar.phtml?Magento 2: How to replace minicart iconMagento 2 minicart issueMagento 2.2.2 getting error unable to process binding if: function()return getCartParam('summary_count') Move Minicart responsive










0















I have moved the mini cart before top.search using below code in my theme under




app/design/frontend/Mytheme/luma_child/Magento_Checkout/layout/default.xml




 <?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">
<body>
<referenceContainer name="header-wrapper">
<block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" after="top.search" template="Magento_Checkout::cart/minicart.phtml">
-------rest of the code ---------
</referenceContainer>
</body>
</page>


This code moves minicart before top.search successfully but it is breaking the minicart item rendering block



enter image description here



giving error in console like below



Uncaught TypeError: Unable to process binding "if: function()return 
getCartParam('summary_count') "
Message: Unable to process binding "foreach: function()return
data:getCartItems(),as:'item' "
Message: Unable to process binding "foreach: function()return $parent.getRegion($parent.getItemRenderer(item.product_type)) "
Message: Cannot read property 'simple' of undefined
at UiClass.getItemRenderer (minicart.js:138)
at foreach (eval at createBindingsStringEvaluator (knockout.js:2624), <anonymous>:3:93)
at knockout.js:3889
at Object.init (knockout.js:5023)
at init (knockout.js:3914)
at knockout.js:2989
at Object.ignore (knockout.js:1249)
at knockout.js:2988
at Object.arrayForEach (knockout.js:151)
at applyBindingsToNodeInternal (knockout.js:2974)


Can anyone suggest how to move it properly? Or do I need to make any adjustment in minicart.js?










share|improve this question
























  • @PrathapGunasekaran Yes i will check in some time and let you know its working or not

    – chirag dodia
    yesterday












  • Is this working @chiragdodia

    – Prathap Gunasekaran
    22 hours ago















0















I have moved the mini cart before top.search using below code in my theme under




app/design/frontend/Mytheme/luma_child/Magento_Checkout/layout/default.xml




 <?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">
<body>
<referenceContainer name="header-wrapper">
<block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" after="top.search" template="Magento_Checkout::cart/minicart.phtml">
-------rest of the code ---------
</referenceContainer>
</body>
</page>


This code moves minicart before top.search successfully but it is breaking the minicart item rendering block



enter image description here



giving error in console like below



Uncaught TypeError: Unable to process binding "if: function()return 
getCartParam('summary_count') "
Message: Unable to process binding "foreach: function()return
data:getCartItems(),as:'item' "
Message: Unable to process binding "foreach: function()return $parent.getRegion($parent.getItemRenderer(item.product_type)) "
Message: Cannot read property 'simple' of undefined
at UiClass.getItemRenderer (minicart.js:138)
at foreach (eval at createBindingsStringEvaluator (knockout.js:2624), <anonymous>:3:93)
at knockout.js:3889
at Object.init (knockout.js:5023)
at init (knockout.js:3914)
at knockout.js:2989
at Object.ignore (knockout.js:1249)
at knockout.js:2988
at Object.arrayForEach (knockout.js:151)
at applyBindingsToNodeInternal (knockout.js:2974)


Can anyone suggest how to move it properly? Or do I need to make any adjustment in minicart.js?










share|improve this question
























  • @PrathapGunasekaran Yes i will check in some time and let you know its working or not

    – chirag dodia
    yesterday












  • Is this working @chiragdodia

    – Prathap Gunasekaran
    22 hours ago













0












0








0








I have moved the mini cart before top.search using below code in my theme under




app/design/frontend/Mytheme/luma_child/Magento_Checkout/layout/default.xml




 <?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">
<body>
<referenceContainer name="header-wrapper">
<block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" after="top.search" template="Magento_Checkout::cart/minicart.phtml">
-------rest of the code ---------
</referenceContainer>
</body>
</page>


This code moves minicart before top.search successfully but it is breaking the minicart item rendering block



enter image description here



giving error in console like below



Uncaught TypeError: Unable to process binding "if: function()return 
getCartParam('summary_count') "
Message: Unable to process binding "foreach: function()return
data:getCartItems(),as:'item' "
Message: Unable to process binding "foreach: function()return $parent.getRegion($parent.getItemRenderer(item.product_type)) "
Message: Cannot read property 'simple' of undefined
at UiClass.getItemRenderer (minicart.js:138)
at foreach (eval at createBindingsStringEvaluator (knockout.js:2624), <anonymous>:3:93)
at knockout.js:3889
at Object.init (knockout.js:5023)
at init (knockout.js:3914)
at knockout.js:2989
at Object.ignore (knockout.js:1249)
at knockout.js:2988
at Object.arrayForEach (knockout.js:151)
at applyBindingsToNodeInternal (knockout.js:2974)


Can anyone suggest how to move it properly? Or do I need to make any adjustment in minicart.js?










share|improve this question
















I have moved the mini cart before top.search using below code in my theme under




app/design/frontend/Mytheme/luma_child/Magento_Checkout/layout/default.xml




 <?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">
<body>
<referenceContainer name="header-wrapper">
<block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" after="top.search" template="Magento_Checkout::cart/minicart.phtml">
-------rest of the code ---------
</referenceContainer>
</body>
</page>


This code moves minicart before top.search successfully but it is breaking the minicart item rendering block



enter image description here



giving error in console like below



Uncaught TypeError: Unable to process binding "if: function()return 
getCartParam('summary_count') "
Message: Unable to process binding "foreach: function()return
data:getCartItems(),as:'item' "
Message: Unable to process binding "foreach: function()return $parent.getRegion($parent.getItemRenderer(item.product_type)) "
Message: Cannot read property 'simple' of undefined
at UiClass.getItemRenderer (minicart.js:138)
at foreach (eval at createBindingsStringEvaluator (knockout.js:2624), <anonymous>:3:93)
at knockout.js:3889
at Object.init (knockout.js:5023)
at init (knockout.js:3914)
at knockout.js:2989
at Object.ignore (knockout.js:1249)
at knockout.js:2988
at Object.arrayForEach (knockout.js:151)
at applyBindingsToNodeInternal (knockout.js:2974)


Can anyone suggest how to move it properly? Or do I need to make any adjustment in minicart.js?







magento2.2 mini-cart






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









Pawan

1,9742617




1,9742617










asked 2 days ago









chirag dodiachirag dodia

79431022




79431022












  • @PrathapGunasekaran Yes i will check in some time and let you know its working or not

    – chirag dodia
    yesterday












  • Is this working @chiragdodia

    – Prathap Gunasekaran
    22 hours ago

















  • @PrathapGunasekaran Yes i will check in some time and let you know its working or not

    – chirag dodia
    yesterday












  • Is this working @chiragdodia

    – Prathap Gunasekaran
    22 hours ago
















@PrathapGunasekaran Yes i will check in some time and let you know its working or not

– chirag dodia
yesterday






@PrathapGunasekaran Yes i will check in some time and let you know its working or not

– chirag dodia
yesterday














Is this working @chiragdodia

– Prathap Gunasekaran
22 hours ago





Is this working @chiragdodia

– Prathap Gunasekaran
22 hours ago










1 Answer
1






active

oldest

votes


















1














Try this,



Remove your above code and add this code in default.xml



 <?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">
<body>
<move element="minicart" destination="header-wrapper" after="top.search"/>
</body>
</page>


Hope this will work out for you :)






share|improve this answer























  • It's working. Thank You.

    – chirag dodia
    13 hours ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267864%2fmove-minicart-before-top-search-magento-2-2%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Try this,



Remove your above code and add this code in default.xml



 <?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">
<body>
<move element="minicart" destination="header-wrapper" after="top.search"/>
</body>
</page>


Hope this will work out for you :)






share|improve this answer























  • It's working. Thank You.

    – chirag dodia
    13 hours ago















1














Try this,



Remove your above code and add this code in default.xml



 <?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">
<body>
<move element="minicart" destination="header-wrapper" after="top.search"/>
</body>
</page>


Hope this will work out for you :)






share|improve this answer























  • It's working. Thank You.

    – chirag dodia
    13 hours ago













1












1








1







Try this,



Remove your above code and add this code in default.xml



 <?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">
<body>
<move element="minicart" destination="header-wrapper" after="top.search"/>
</body>
</page>


Hope this will work out for you :)






share|improve this answer













Try this,



Remove your above code and add this code in default.xml



 <?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">
<body>
<move element="minicart" destination="header-wrapper" after="top.search"/>
</body>
</page>


Hope this will work out for you :)







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









Prathap GunasekaranPrathap Gunasekaran

1,5761618




1,5761618












  • It's working. Thank You.

    – chirag dodia
    13 hours ago

















  • It's working. Thank You.

    – chirag dodia
    13 hours ago
















It's working. Thank You.

– chirag dodia
13 hours ago





It's working. Thank You.

– chirag dodia
13 hours ago

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267864%2fmove-minicart-before-top-search-magento-2-2%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Sum ergo cogito? 1 nng

三茅街道4182Guuntc Dn precexpngmageondP