Magento 1.9 open header mini cart when product is added to cart Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?aligning magento top links left and rightGetting ajaxcart.js to load on the cart pageOpen header cart when product added to cartEditing home page html code in RWD themeFailing to locate landing page content (screenshots)Getting the product SKU in the header mini-cartUpdate product quantity in mini cart if product is already added in the cartMessages Block empty on advanced search resultsMini cart should open automatically and close after few seconds when product is added in Magento 1
The following signatures were invalid: EXPKEYSIG 1397BC53640DB551
What do you call a plan that's an alternative plan in case your initial plan fails?
Is there folklore associating late breastfeeding with low intelligence and/or gullibility?
Strange behaviour of Check
How can I make names more distinctive without making them longer?
Does a C shift expression have unsigned type? Why would Splint warn about a right-shift?
How to colour the US map with Yellow, Green, Red and Blue to minimize the number of states with the colour of Green
Cold is to Refrigerator as warm is to?
How are presidential pardons supposed to be used?
How to market an anarchic city as a tourism spot to people living in civilized areas?
How to add zeros to reach same number of decimal places in tables?
Need a suitable toxic chemical for a murder plot in my novel
Did the new image of black hole confirm the general theory of relativity?
What kind of display is this?
Two different pronunciation of "понял"
What would be Julian Assange's expected punishment, on the current English criminal law?
3 doors, three guards, one stone
How to rotate it perfectly?
Writing Thesis: Copying from published papers
How did the aliens keep their waters separated?
Is there a documented rationale why the House Ways and Means chairman can demand tax info?
Aligning matrix of nodes with grid
Mortgage adviser recommends a longer term than necessary combined with overpayments
Problem when applying foreach loop
Magento 1.9 open header mini cart when product is added to cart
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?aligning magento top links left and rightGetting ajaxcart.js to load on the cart pageOpen header cart when product added to cartEditing home page html code in RWD themeFailing to locate landing page content (screenshots)Getting the product SKU in the header mini-cartUpdate product quantity in mini cart if product is already added in the cartMessages Block empty on advanced search resultsMini cart should open automatically and close after few seconds when product is added in Magento 1
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to open the header cart when a product is added to the cart on my Magento 1.9.4.1 store, by adding the class display:block; to my header cart div after the page is re-loaded.
I use the default cart method, that the page refresh and the product is added to the cart.
My header cart got the div <div class="cart-wrapper" id="mini-header-cart">
How can I achieve this?
EDIT:
I am almost there using the success message element, but I do not want to check the length of the success message, but if the success message contains a add to cart phrase. Any ideas how to change my code?
CODE:
<script type="text/javascript">
if ($('.messages .success-msg').length)
var screen_width = $(window).width();
if (screen_width > 780) $('.cart-container .cart-wrapper').css('display','block');
</script>
magento-1.9 mini-cart
add a comment |
I want to open the header cart when a product is added to the cart on my Magento 1.9.4.1 store, by adding the class display:block; to my header cart div after the page is re-loaded.
I use the default cart method, that the page refresh and the product is added to the cart.
My header cart got the div <div class="cart-wrapper" id="mini-header-cart">
How can I achieve this?
EDIT:
I am almost there using the success message element, but I do not want to check the length of the success message, but if the success message contains a add to cart phrase. Any ideas how to change my code?
CODE:
<script type="text/javascript">
if ($('.messages .success-msg').length)
var screen_width = $(window).width();
if (screen_width > 780) $('.cart-container .cart-wrapper').css('display','block');
</script>
magento-1.9 mini-cart
add a comment |
I want to open the header cart when a product is added to the cart on my Magento 1.9.4.1 store, by adding the class display:block; to my header cart div after the page is re-loaded.
I use the default cart method, that the page refresh and the product is added to the cart.
My header cart got the div <div class="cart-wrapper" id="mini-header-cart">
How can I achieve this?
EDIT:
I am almost there using the success message element, but I do not want to check the length of the success message, but if the success message contains a add to cart phrase. Any ideas how to change my code?
CODE:
<script type="text/javascript">
if ($('.messages .success-msg').length)
var screen_width = $(window).width();
if (screen_width > 780) $('.cart-container .cart-wrapper').css('display','block');
</script>
magento-1.9 mini-cart
I want to open the header cart when a product is added to the cart on my Magento 1.9.4.1 store, by adding the class display:block; to my header cart div after the page is re-loaded.
I use the default cart method, that the page refresh and the product is added to the cart.
My header cart got the div <div class="cart-wrapper" id="mini-header-cart">
How can I achieve this?
EDIT:
I am almost there using the success message element, but I do not want to check the length of the success message, but if the success message contains a add to cart phrase. Any ideas how to change my code?
CODE:
<script type="text/javascript">
if ($('.messages .success-msg').length)
var screen_width = $(window).width();
if (screen_width > 780) $('.cart-container .cart-wrapper').css('display','block');
</script>
magento-1.9 mini-cart
magento-1.9 mini-cart
edited Apr 10 at 20:25
Henk Z
asked Apr 10 at 13:37
Henk ZHenk Z
93263673
93263673
add a comment |
add a comment |
0
active
oldest
votes
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
);
);
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%2f269559%2fmagento-1-9-open-header-mini-cart-when-product-is-added-to-cart%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f269559%2fmagento-1-9-open-header-mini-cart-when-product-is-added-to-cart%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