Magento 2 Redirect shopping cart link on message notification in iframeUpdate qty in shopping cart bounces/redirects to main siteShare the shopping cart content between Magento multi-store websitesEditing product link on shopping cart - “Cannot configure product”Do not apply any other shopping cart price rule if a particular shopping cart rule is appliedredirect to shopping cart page customer logged in to siteShopping cart doesn not go to payment gateway, instead returns to a page “Shopping cart is Empty”Checkout Process Redirect to Shopping Cart is emptyMagento1 compilation breaks shopping cartMagento2 : Why I'm redirect to Empty Cart After Checkout?Magento 2 View cart from abandoned cart email auto redirect to cart after login

The Sword in the Stone

Why is 'n' preferred over "n" for output streams?

Assuring luggage isn't lost with short layover

When does Haskell complain about incorrect typing in functions?

Why does Canada require mandatory bilingualism in all government posts?

Is a topological space considered to be a class in set theory?

Correlation length anisotropy in the 2D Ising model

How to get CPU-G to run on 18.04

If a 2019 UA artificer has the Repeating Shot infusion on two hand crossbows, can they use two-weapon fighting?

How do I stop my characters falling in love?

Sci-fi change: Too much or Not enough

How did Mysterio have these drones?

Checking if an integer is a member of an integer list

How to judge a Ph.D. applicant that arrives "out of thin air"

Is there an antonym for "spicy" or "hot" regarding food (NOT "seasoned" but "spicy")?

Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?

Am I allowed to use personal conversation as a source?

Why did House of Representatives need to condemn Trumps Tweets?

Could the rotation of a black hole cause other planets to rotate?

Word for showing a small part of something briefly to hint to its existence or beauty without fully uncovering it

Why is the number of local variables used in a Java bytecode method not the most economical?

Did the meaning of "significant" change in the 20th century?

Send a single HTML email from Thunderbird, overriding the default "plain text" setting

Why isn't there a serious attempt at creating a third mass-appeal party in the US?



Magento 2 Redirect shopping cart link on message notification in iframe


Update qty in shopping cart bounces/redirects to main siteShare the shopping cart content between Magento multi-store websitesEditing product link on shopping cart - “Cannot configure product”Do not apply any other shopping cart price rule if a particular shopping cart rule is appliedredirect to shopping cart page customer logged in to siteShopping cart doesn not go to payment gateway, instead returns to a page “Shopping cart is Empty”Checkout Process Redirect to Shopping Cart is emptyMagento1 compilation breaks shopping cartMagento2 : Why I'm redirect to Empty Cart After Checkout?Magento 2 View cart from abandoned cart email auto redirect to cart after login






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








0















I can not redirect to the shopping cart link outside the iframe.
It still redirect but it stays in the iframe. magento 2.2.6
when i click shopping cart
enter image description here



result :
enter image description here



I want it redirect to shopping cart but not in iframe.
Can anyone help me ?
Sorry for my english.thanks!










share|improve this question






























    0















    I can not redirect to the shopping cart link outside the iframe.
    It still redirect but it stays in the iframe. magento 2.2.6
    when i click shopping cart
    enter image description here



    result :
    enter image description here



    I want it redirect to shopping cart but not in iframe.
    Can anyone help me ?
    Sorry for my english.thanks!










    share|improve this question


























      0












      0








      0








      I can not redirect to the shopping cart link outside the iframe.
      It still redirect but it stays in the iframe. magento 2.2.6
      when i click shopping cart
      enter image description here



      result :
      enter image description here



      I want it redirect to shopping cart but not in iframe.
      Can anyone help me ?
      Sorry for my english.thanks!










      share|improve this question
















      I can not redirect to the shopping cart link outside the iframe.
      It still redirect but it stays in the iframe. magento 2.2.6
      when i click shopping cart
      enter image description here



      result :
      enter image description here



      I want it redirect to shopping cart but not in iframe.
      Can anyone help me ?
      Sorry for my english.thanks!







      magento2 shopping-cart magento2.2.6 redirect-url






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 '18 at 8:42







      Thành Trung Tô

















      asked Nov 12 '18 at 8:06









      Thành Trung TôThành Trung Tô

      587 bronze badges




      587 bronze badges




















          2 Answers
          2






          active

          oldest

          votes


















          1














          If you can manage the iframe content, you should change the link redirection and manage the parent location with it.



          The way to do it is:
          window.top.location.href = "/your-url-link-redirect";



          Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action






          share|improve this answer






























            0














            I had a same issue while I was working.
            I checked and found that there is template file for displaying message for product is added successfully.



            Message is:



            You added PRODUCT_NAME to your shopping cart.


            File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml



            I have checked code it's as below:



            <?= $block->escapeHtml(__(
            'You added %1 to your <a href="%2">shopping cart</a>.',
            $block->getData('product_name'),
            $block->getData('cart_url')
            ), ['a']);


            I have copied that file into custom theme:



            app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml



            Changed code as below:



            <?= $block->escapeHtml(__(
            'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
            $block->getData('product_name'),
            $block->getData('cart_url')
            ), ['a']);


            After that I have checked that it's working as expected.
            Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.






            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%2f249685%2fmagento-2-redirect-shopping-cart-link-on-message-notification-in-iframe%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









              1














              If you can manage the iframe content, you should change the link redirection and manage the parent location with it.



              The way to do it is:
              window.top.location.href = "/your-url-link-redirect";



              Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action






              share|improve this answer



























                1














                If you can manage the iframe content, you should change the link redirection and manage the parent location with it.



                The way to do it is:
                window.top.location.href = "/your-url-link-redirect";



                Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action






                share|improve this answer

























                  1












                  1








                  1







                  If you can manage the iframe content, you should change the link redirection and manage the parent location with it.



                  The way to do it is:
                  window.top.location.href = "/your-url-link-redirect";



                  Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action






                  share|improve this answer













                  If you can manage the iframe content, you should change the link redirection and manage the parent location with it.



                  The way to do it is:
                  window.top.location.href = "/your-url-link-redirect";



                  Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 12 '18 at 22:14









                  Ezequiel AlbaEzequiel Alba

                  1169 bronze badges




                  1169 bronze badges























                      0














                      I had a same issue while I was working.
                      I checked and found that there is template file for displaying message for product is added successfully.



                      Message is:



                      You added PRODUCT_NAME to your shopping cart.


                      File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml



                      I have checked code it's as below:



                      <?= $block->escapeHtml(__(
                      'You added %1 to your <a href="%2">shopping cart</a>.',
                      $block->getData('product_name'),
                      $block->getData('cart_url')
                      ), ['a']);


                      I have copied that file into custom theme:



                      app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml



                      Changed code as below:



                      <?= $block->escapeHtml(__(
                      'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
                      $block->getData('product_name'),
                      $block->getData('cart_url')
                      ), ['a']);


                      After that I have checked that it's working as expected.
                      Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.






                      share|improve this answer



























                        0














                        I had a same issue while I was working.
                        I checked and found that there is template file for displaying message for product is added successfully.



                        Message is:



                        You added PRODUCT_NAME to your shopping cart.


                        File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml



                        I have checked code it's as below:



                        <?= $block->escapeHtml(__(
                        'You added %1 to your <a href="%2">shopping cart</a>.',
                        $block->getData('product_name'),
                        $block->getData('cart_url')
                        ), ['a']);


                        I have copied that file into custom theme:



                        app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml



                        Changed code as below:



                        <?= $block->escapeHtml(__(
                        'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
                        $block->getData('product_name'),
                        $block->getData('cart_url')
                        ), ['a']);


                        After that I have checked that it's working as expected.
                        Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.






                        share|improve this answer

























                          0












                          0








                          0







                          I had a same issue while I was working.
                          I checked and found that there is template file for displaying message for product is added successfully.



                          Message is:



                          You added PRODUCT_NAME to your shopping cart.


                          File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml



                          I have checked code it's as below:



                          <?= $block->escapeHtml(__(
                          'You added %1 to your <a href="%2">shopping cart</a>.',
                          $block->getData('product_name'),
                          $block->getData('cart_url')
                          ), ['a']);


                          I have copied that file into custom theme:



                          app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml



                          Changed code as below:



                          <?= $block->escapeHtml(__(
                          'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
                          $block->getData('product_name'),
                          $block->getData('cart_url')
                          ), ['a']);


                          After that I have checked that it's working as expected.
                          Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.






                          share|improve this answer













                          I had a same issue while I was working.
                          I checked and found that there is template file for displaying message for product is added successfully.



                          Message is:



                          You added PRODUCT_NAME to your shopping cart.


                          File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml



                          I have checked code it's as below:



                          <?= $block->escapeHtml(__(
                          'You added %1 to your <a href="%2">shopping cart</a>.',
                          $block->getData('product_name'),
                          $block->getData('cart_url')
                          ), ['a']);


                          I have copied that file into custom theme:



                          app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml



                          Changed code as below:



                          <?= $block->escapeHtml(__(
                          'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
                          $block->getData('product_name'),
                          $block->getData('cart_url')
                          ), ['a']);


                          After that I have checked that it's working as expected.
                          Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jul 18 at 6:24









                          Gopal KachaGopal Kacha

                          1711 silver badge11 bronze badges




                          1711 silver badge11 bronze badges



























                              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%2f249685%2fmagento-2-redirect-shopping-cart-link-on-message-notification-in-iframe%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