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;








1















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>









share|improve this question






























    1















    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>









    share|improve this question


























      1












      1








      1








      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>









      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 10 at 20:25







      Henk Z

















      asked Apr 10 at 13:37









      Henk ZHenk Z

      93263673




      93263673




















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



          );













          draft saved

          draft discarded


















          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















          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%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





















































          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

          Does high air pressure throw off wheel balance? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Should we be closing questions more regularly?How much should I inflate my tire?Which tire pressure is right for my 2008 Toyota Yaris's front tires?Should I let air out of my tires?Tire Pressure Adjustments When NeededRadial tires: Do they bulge at too high pressure?Cold weather tire pressure adjustmentHow does tire pressure vary with altitude?Why does a tire have the same air pressure when mounted on the car and when not?What does tire size have to do with the capabilities of an air compressor?Tire pressure with tires on vs off the car

          Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?

          Inventory management after order created via rest API in Magento 2.x version ( without cart)Magento - Create order using REST APILocalization for Cart/Quote APIs doesn't work properly in magento 2Magento 1.9 - Create order using REST APIPLacing Order Magento 2.1 REST APIREST API accessible without authorizationMagento 2.2 Inventory not getting decreased when orders are created using REST APIWhat is the usage of itemId inside Update inventory REST API?Get category meta tags via REST APIGet cart info REST APIAdding a grouped product to cart via the rest api