How to fix blank Minicart popup in custom navbar for Magento 2Magento 2 Cart Breaking When Copying minicart.phtml into TemplateMinicart 2.1 Minicart doesn't show products added to the cartMagento 2 Layout extend from blank themeMagento 2 - Knockout js minicartMagento 2 in minicart popup need qty incrementer and decrementerMagento 2: header links missing from checkout pagesProduct is not displaying in minicart dropdown after adding it?move minicart before top.search magento 2.2Magento 2 Execute jQuery when minicart is done loadingMagento 2 one page checkout - Where to edit authentication popup

Scaling an object to change its key

What is this plant I saw for sale at a Romanian farmer's market?

How are で and いう being used in this context?

What is this airplane that sits in front of Barringer High School in Newark, NJ?

Why do you need to heat the pan before heating the olive oil?

What does this Swiss black on yellow rectangular traffic sign with a symbol looking like a dart mean?

Time at 1 g acceleration to travel 100 000 light years

Are there any individual aliens that have gained superpowers in the Marvel universe?

Umlaut character order when sorting

Why is it 出差去 and not 去出差?

Is Newton's third law really correct?

King or Queen-Which piece is which?

What mathematical theory is required for high frequency trading?

How to take photos with a yellowish tone and point-and-shoot film camera look?

Understanding “en comprend”

I have found ports on my Samsung smart tv running a display service. What can I do with it?

Pin support, why is there no horizontal reaction force?

Why is Havana covered in 5-digit numbers in Our Man in Havana?

I found a password with hashcat but it doesn't work

Setting up the trap

reverse a call to mmap()

Print the new site header

Can a character learn spells from someone else's spellbook and then sell it?

How to make all magic-casting innate, but still rare?



How to fix blank Minicart popup in custom navbar for Magento 2


Magento 2 Cart Breaking When Copying minicart.phtml into TemplateMinicart 2.1 Minicart doesn't show products added to the cartMagento 2 Layout extend from blank themeMagento 2 - Knockout js minicartMagento 2 in minicart popup need qty incrementer and decrementerMagento 2: header links missing from checkout pagesProduct is not displaying in minicart dropdown after adding it?move minicart before top.search magento 2.2Magento 2 Execute jQuery when minicart is done loadingMagento 2 one page checkout - Where to edit authentication popup






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








0















I am creating a custom theme from the parent theme Luma. I've added this code to Magento_Theme/layout/default.xml to include the minicart.



<block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" template="Magento_Checkout::cart/minicart.phtml"/>


The result added the cart icon but when clicked on, it only shows a blank popup. This stays blank whether there is a product added to cart or not. There is no error messages in console.



enter image description here



Minicart Page Source on my site



Working Website Page Source










share|improve this question









New contributor



Josiah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • I switched my theme back to Luma and the cart does work, so it must be something in my custom theme that is breaking it, but I'm not sure what to look for

    – Josiah
    Jun 11 at 16:14

















0















I am creating a custom theme from the parent theme Luma. I've added this code to Magento_Theme/layout/default.xml to include the minicart.



<block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" template="Magento_Checkout::cart/minicart.phtml"/>


The result added the cart icon but when clicked on, it only shows a blank popup. This stays blank whether there is a product added to cart or not. There is no error messages in console.



enter image description here



Minicart Page Source on my site



Working Website Page Source










share|improve this question









New contributor



Josiah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • I switched my theme back to Luma and the cart does work, so it must be something in my custom theme that is breaking it, but I'm not sure what to look for

    – Josiah
    Jun 11 at 16:14













0












0








0








I am creating a custom theme from the parent theme Luma. I've added this code to Magento_Theme/layout/default.xml to include the minicart.



<block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" template="Magento_Checkout::cart/minicart.phtml"/>


The result added the cart icon but when clicked on, it only shows a blank popup. This stays blank whether there is a product added to cart or not. There is no error messages in console.



enter image description here



Minicart Page Source on my site



Working Website Page Source










share|improve this question









New contributor



Josiah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am creating a custom theme from the parent theme Luma. I've added this code to Magento_Theme/layout/default.xml to include the minicart.



<block class="MagentoCheckoutBlockCartSidebar" name="minicart" as="minicart" template="Magento_Checkout::cart/minicart.phtml"/>


The result added the cart icon but when clicked on, it only shows a blank popup. This stays blank whether there is a product added to cart or not. There is no error messages in console.



enter image description here



Minicart Page Source on my site



Working Website Page Source







magento2 javascript frontend requirejs mini-cart






share|improve this question









New contributor



Josiah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



Josiah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited Jun 11 at 1:08









electroid

328210




328210






New contributor



Josiah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked Jun 10 at 20:03









JosiahJosiah

32




32




New contributor



Josiah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Josiah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • I switched my theme back to Luma and the cart does work, so it must be something in my custom theme that is breaking it, but I'm not sure what to look for

    – Josiah
    Jun 11 at 16:14

















  • I switched my theme back to Luma and the cart does work, so it must be something in my custom theme that is breaking it, but I'm not sure what to look for

    – Josiah
    Jun 11 at 16:14
















I switched my theme back to Luma and the cart does work, so it must be something in my custom theme that is breaking it, but I'm not sure what to look for

– Josiah
Jun 11 at 16:14





I switched my theme back to Luma and the cart does work, so it must be something in my custom theme that is breaking it, but I'm not sure what to look for

– Josiah
Jun 11 at 16:14










1 Answer
1






active

oldest

votes


















0














If you are doing child theme based on parent theme Luma you can just move minicart block



<move element="minicart" destination="your.container" />





share|improve this answer























  • If I do this then the cart doesn't even show

    – Josiah
    Jun 11 at 15:15











  • For example if I set the destination to "header-wrapper", then clear the cache and then it shows nothing on the frontend.

    – Josiah
    Jun 11 at 15:27











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
);



);






Josiah is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277873%2fhow-to-fix-blank-minicart-popup-in-custom-navbar-for-magento-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









0














If you are doing child theme based on parent theme Luma you can just move minicart block



<move element="minicart" destination="your.container" />





share|improve this answer























  • If I do this then the cart doesn't even show

    – Josiah
    Jun 11 at 15:15











  • For example if I set the destination to "header-wrapper", then clear the cache and then it shows nothing on the frontend.

    – Josiah
    Jun 11 at 15:27















0














If you are doing child theme based on parent theme Luma you can just move minicart block



<move element="minicart" destination="your.container" />





share|improve this answer























  • If I do this then the cart doesn't even show

    – Josiah
    Jun 11 at 15:15











  • For example if I set the destination to "header-wrapper", then clear the cache and then it shows nothing on the frontend.

    – Josiah
    Jun 11 at 15:27













0












0








0







If you are doing child theme based on parent theme Luma you can just move minicart block



<move element="minicart" destination="your.container" />





share|improve this answer













If you are doing child theme based on parent theme Luma you can just move minicart block



<move element="minicart" destination="your.container" />






share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 10 at 22:38









electroidelectroid

328210




328210












  • If I do this then the cart doesn't even show

    – Josiah
    Jun 11 at 15:15











  • For example if I set the destination to "header-wrapper", then clear the cache and then it shows nothing on the frontend.

    – Josiah
    Jun 11 at 15:27

















  • If I do this then the cart doesn't even show

    – Josiah
    Jun 11 at 15:15











  • For example if I set the destination to "header-wrapper", then clear the cache and then it shows nothing on the frontend.

    – Josiah
    Jun 11 at 15:27
















If I do this then the cart doesn't even show

– Josiah
Jun 11 at 15:15





If I do this then the cart doesn't even show

– Josiah
Jun 11 at 15:15













For example if I set the destination to "header-wrapper", then clear the cache and then it shows nothing on the frontend.

– Josiah
Jun 11 at 15:27





For example if I set the destination to "header-wrapper", then clear the cache and then it shows nothing on the frontend.

– Josiah
Jun 11 at 15:27










Josiah is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Josiah is a new contributor. Be nice, and check out our Code of Conduct.












Josiah is a new contributor. Be nice, and check out our Code of Conduct.











Josiah is a new contributor. Be nice, and check out our Code of Conduct.














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%2f277873%2fhow-to-fix-blank-minicart-popup-in-custom-navbar-for-magento-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

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