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;
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.
magento2 javascript frontend requirejs mini-cart
New contributor
add a comment |
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.
magento2 javascript frontend requirejs mini-cart
New contributor
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
add a comment |
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.
magento2 javascript frontend requirejs mini-cart
New contributor
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.
magento2 javascript frontend requirejs mini-cart
magento2 javascript frontend requirejs mini-cart
New contributor
New contributor
edited Jun 11 at 1:08
electroid
328210
328210
New contributor
asked Jun 10 at 20:03
JosiahJosiah
32
32
New contributor
New contributor
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
If you are doing child theme based on parent theme Luma you can just move minicart block
<move element="minicart" destination="your.container" />
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
If you are doing child theme based on parent theme Luma you can just move minicart block
<move element="minicart" destination="your.container" />
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
add a comment |
If you are doing child theme based on parent theme Luma you can just move minicart block
<move element="minicart" destination="your.container" />
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
add a comment |
If you are doing child theme based on parent theme Luma you can just move minicart block
<move element="minicart" destination="your.container" />
If you are doing child theme based on parent theme Luma you can just move minicart block
<move element="minicart" destination="your.container" />
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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