Magento2 Knockout js - issue on cartHow can i rewrite TierPrice Block in Magento2Magento 2 Knockout JS data binding issue(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingMagento 2.1 Minicart Knockout TypeErrorUnable to process binding Knockout.js magento 2magento2 ko issue in cart-items.jsMagento 2.2.0 - checkout_index_index.xml shippingAdditional not workingMagento2. Knockout. Translation doesn't workMagento2 : checkbox change function in knockout jsHow to insert a UI component into the mini cart?

29er Road Tire?

What exactly are the `size issues' preventing formation of presheaves being a left adjoint to some forgetful functor?

Does the 7th major scale note resolve more strongly to the lower tonic (note 1) than the higher tonic (note 8)?

Has the Hulk always been able to talk?

What is a smasher?

Word for Food that's Gone 'Bad', but is Still Edible?

What does "Managed by Windows" do in the Power options for network connection?

Is there an official reason for not adding a post-credits scene?

Wrong answer from DSolve when solving a differential equation

Out of scope work duties and resignation

Do I add my skill check modifier to the roll of 15 granted by Glibness?

How can internet speed be 10 times slower without a router than when using a router?

Copy previous line to current line from text file

Are there any of the Children of the Forest left, or are they extinct?

Are the Night's Watch still required?

What was the first story to feature the plot "the monsters were human all along"?

Point of the Dothraki's attack in GoT S8E3?

Identifying characters

What does 'made on' mean here?

How do LIGO and VIRGO know that a gravitational wave has its origin in a neutron star or a black hole?

Can I use a fetch land to shuffle my deck while the opponent has Ashiok, Dream Render in play?

Decoupling cap routing on a 4 layer PCB

Does it make sense for a function to return a rvalue reference

Upside-Down Pyramid Addition...REVERSED!



Magento2 Knockout js - issue on cart


How can i rewrite TierPrice Block in Magento2Magento 2 Knockout JS data binding issue(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingMagento 2.1 Minicart Knockout TypeErrorUnable to process binding Knockout.js magento 2magento2 ko issue in cart-items.jsMagento 2.2.0 - checkout_index_index.xml shippingAdditional not workingMagento2. Knockout. Translation doesn't workMagento2 : checkbox change function in knockout jsHow to insert a UI component into the mini cart?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I tried to reposition my cart block to a other header location.
Since then I am getting this javascript error which is annoying since I only repositioned a block.



Uncaught TypeError: Unable to process binding "foreach: function ()return data:cart().items,as:'item' "
Message: Unable to process binding "foreach: function ()return $parent.getRegion($parent.getItemRenderer(item.product_type)) "
Message: Cannot read property 'simple' of undefined


This is the block i repositioned.



 <block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" after="store_language" template="cart/minicart.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="types" xsi:type="array"/>
<item name="components" xsi:type="array">
<item name="minicart_content" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/minicart</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/content</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal.container" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">subtotalContainer</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/subtotal</item>
</item>
</item>
</item>
</item>
<item name="extra_info" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">extraInfo</item>
</item>
</item>
<item name="promotion" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">promotion</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</block>









share|improve this question
























  • How do you have repositioned this block? Can you specify it in your question?

    – raumatbel
    Jun 15 '18 at 12:01












  • Hi there, check the answers & give feedback ;)

    – Raul Sanchez
    Jun 28 '18 at 10:10

















2















I tried to reposition my cart block to a other header location.
Since then I am getting this javascript error which is annoying since I only repositioned a block.



Uncaught TypeError: Unable to process binding "foreach: function ()return data:cart().items,as:'item' "
Message: Unable to process binding "foreach: function ()return $parent.getRegion($parent.getItemRenderer(item.product_type)) "
Message: Cannot read property 'simple' of undefined


This is the block i repositioned.



 <block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" after="store_language" template="cart/minicart.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="types" xsi:type="array"/>
<item name="components" xsi:type="array">
<item name="minicart_content" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/minicart</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/content</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal.container" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">subtotalContainer</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/subtotal</item>
</item>
</item>
</item>
</item>
<item name="extra_info" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">extraInfo</item>
</item>
</item>
<item name="promotion" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">promotion</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</block>









share|improve this question
























  • How do you have repositioned this block? Can you specify it in your question?

    – raumatbel
    Jun 15 '18 at 12:01












  • Hi there, check the answers & give feedback ;)

    – Raul Sanchez
    Jun 28 '18 at 10:10













2












2








2


3






I tried to reposition my cart block to a other header location.
Since then I am getting this javascript error which is annoying since I only repositioned a block.



Uncaught TypeError: Unable to process binding "foreach: function ()return data:cart().items,as:'item' "
Message: Unable to process binding "foreach: function ()return $parent.getRegion($parent.getItemRenderer(item.product_type)) "
Message: Cannot read property 'simple' of undefined


This is the block i repositioned.



 <block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" after="store_language" template="cart/minicart.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="types" xsi:type="array"/>
<item name="components" xsi:type="array">
<item name="minicart_content" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/minicart</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/content</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal.container" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">subtotalContainer</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/subtotal</item>
</item>
</item>
</item>
</item>
<item name="extra_info" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">extraInfo</item>
</item>
</item>
<item name="promotion" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">promotion</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</block>









share|improve this question
















I tried to reposition my cart block to a other header location.
Since then I am getting this javascript error which is annoying since I only repositioned a block.



Uncaught TypeError: Unable to process binding "foreach: function ()return data:cart().items,as:'item' "
Message: Unable to process binding "foreach: function ()return $parent.getRegion($parent.getItemRenderer(item.product_type)) "
Message: Cannot read property 'simple' of undefined


This is the block i repositioned.



 <block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" after="store_language" template="cart/minicart.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="types" xsi:type="array"/>
<item name="components" xsi:type="array">
<item name="minicart_content" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/minicart</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/content</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal.container" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">subtotalContainer</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/subtotal</item>
</item>
</item>
</item>
</item>
<item name="extra_info" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">extraInfo</item>
</item>
</item>
<item name="promotion" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">promotion</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</block>






magento2 mini-cart knockoutjs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 16 '17 at 11:19









Ben Crook

9,3592577




9,3592577










asked Feb 8 '16 at 11:58









Kay Int VeenKay Int Veen

1,0681923




1,0681923












  • How do you have repositioned this block? Can you specify it in your question?

    – raumatbel
    Jun 15 '18 at 12:01












  • Hi there, check the answers & give feedback ;)

    – Raul Sanchez
    Jun 28 '18 at 10:10

















  • How do you have repositioned this block? Can you specify it in your question?

    – raumatbel
    Jun 15 '18 at 12:01












  • Hi there, check the answers & give feedback ;)

    – Raul Sanchez
    Jun 28 '18 at 10:10
















How do you have repositioned this block? Can you specify it in your question?

– raumatbel
Jun 15 '18 at 12:01






How do you have repositioned this block? Can you specify it in your question?

– raumatbel
Jun 15 '18 at 12:01














Hi there, check the answers & give feedback ;)

– Raul Sanchez
Jun 28 '18 at 10:10





Hi there, check the answers & give feedback ;)

– Raul Sanchez
Jun 28 '18 at 10:10










2 Answers
2






active

oldest

votes


















0














You need to create your custom theme and define it in defalut.xml layout file



app/design/frontend/vendorName/ThemeName/Magento_Theme/layout/default.xml



define your container add it before where you want to place minicart then add code as below change element name change template file if required as below



enter image description here






share|improve this answer
































    0














    Answer here fixed the issue for me




    Minicart is contained by this "header-wrapper". So if you re-declare it in your theme, it causes error. You just need to call it.




    We had extended that layout file app/design/frontend/XXX/XXX/Magento_Theme/layout/default.xml, with the intention to add a CMS block in header



    So instead of redefining container



    <referenceContainer name="header.container">
    <container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
    ...


    Just changing to referencing it fixed the issue



    <referenceContainer name="header-wrapper">
    <block class="MagentoCmsBlockBlock" name="header_advice">
    <arguments>
    <argument name="block_id" xsi:type="string">header_advice</argument>
    </arguments>
    </block>
    </referenceContainer>





    share|improve this answer

























      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%2f100792%2fmagento2-knockout-js-issue-on-cart%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      You need to create your custom theme and define it in defalut.xml layout file



      app/design/frontend/vendorName/ThemeName/Magento_Theme/layout/default.xml



      define your container add it before where you want to place minicart then add code as below change element name change template file if required as below



      enter image description here






      share|improve this answer





























        0














        You need to create your custom theme and define it in defalut.xml layout file



        app/design/frontend/vendorName/ThemeName/Magento_Theme/layout/default.xml



        define your container add it before where you want to place minicart then add code as below change element name change template file if required as below



        enter image description here






        share|improve this answer



























          0












          0








          0







          You need to create your custom theme and define it in defalut.xml layout file



          app/design/frontend/vendorName/ThemeName/Magento_Theme/layout/default.xml



          define your container add it before where you want to place minicart then add code as below change element name change template file if required as below



          enter image description here






          share|improve this answer















          You need to create your custom theme and define it in defalut.xml layout file



          app/design/frontend/vendorName/ThemeName/Magento_Theme/layout/default.xml



          define your container add it before where you want to place minicart then add code as below change element name change template file if required as below



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 14 '18 at 9:09

























          answered Jun 14 '18 at 6:23









          Prashant ValandaPrashant Valanda

          10k12456




          10k12456























              0














              Answer here fixed the issue for me




              Minicart is contained by this "header-wrapper". So if you re-declare it in your theme, it causes error. You just need to call it.




              We had extended that layout file app/design/frontend/XXX/XXX/Magento_Theme/layout/default.xml, with the intention to add a CMS block in header



              So instead of redefining container



              <referenceContainer name="header.container">
              <container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
              ...


              Just changing to referencing it fixed the issue



              <referenceContainer name="header-wrapper">
              <block class="MagentoCmsBlockBlock" name="header_advice">
              <arguments>
              <argument name="block_id" xsi:type="string">header_advice</argument>
              </arguments>
              </block>
              </referenceContainer>





              share|improve this answer





























                0














                Answer here fixed the issue for me




                Minicart is contained by this "header-wrapper". So if you re-declare it in your theme, it causes error. You just need to call it.




                We had extended that layout file app/design/frontend/XXX/XXX/Magento_Theme/layout/default.xml, with the intention to add a CMS block in header



                So instead of redefining container



                <referenceContainer name="header.container">
                <container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
                ...


                Just changing to referencing it fixed the issue



                <referenceContainer name="header-wrapper">
                <block class="MagentoCmsBlockBlock" name="header_advice">
                <arguments>
                <argument name="block_id" xsi:type="string">header_advice</argument>
                </arguments>
                </block>
                </referenceContainer>





                share|improve this answer



























                  0












                  0








                  0







                  Answer here fixed the issue for me




                  Minicart is contained by this "header-wrapper". So if you re-declare it in your theme, it causes error. You just need to call it.




                  We had extended that layout file app/design/frontend/XXX/XXX/Magento_Theme/layout/default.xml, with the intention to add a CMS block in header



                  So instead of redefining container



                  <referenceContainer name="header.container">
                  <container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
                  ...


                  Just changing to referencing it fixed the issue



                  <referenceContainer name="header-wrapper">
                  <block class="MagentoCmsBlockBlock" name="header_advice">
                  <arguments>
                  <argument name="block_id" xsi:type="string">header_advice</argument>
                  </arguments>
                  </block>
                  </referenceContainer>





                  share|improve this answer















                  Answer here fixed the issue for me




                  Minicart is contained by this "header-wrapper". So if you re-declare it in your theme, it causes error. You just need to call it.




                  We had extended that layout file app/design/frontend/XXX/XXX/Magento_Theme/layout/default.xml, with the intention to add a CMS block in header



                  So instead of redefining container



                  <referenceContainer name="header.container">
                  <container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
                  ...


                  Just changing to referencing it fixed the issue



                  <referenceContainer name="header-wrapper">
                  <block class="MagentoCmsBlockBlock" name="header_advice">
                  <arguments>
                  <argument name="block_id" xsi:type="string">header_advice</argument>
                  </arguments>
                  </block>
                  </referenceContainer>






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 14 '18 at 9:29

























                  answered Jun 11 '18 at 8:46









                  Raul SanchezRaul Sanchez

                  2,21931335




                  2,21931335



























                      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%2f100792%2fmagento2-knockout-js-issue-on-cart%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

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form