How to disable Product Image PopupPinch zoom to only part of the websiteMagento2 : How to disable product image slider on detail page?Magento 2: How to set first image of slider in fotorama js after cancel fullscreen popup in product detail pageDisable product magnification / zoom in Magento 2Magento 2: How to remove zoom on hover on product image in view page?How to remove zoom on hover on product image in view page in Magento2?Product image not zooming in properly when hovering on image at product detail pageHow To Display Single Image Thumbnail in product detail page Magento 2Magento default zoom for product image is not working properlyHow can I implement zoom effect on image that is display when custom option is selected

Why does Sin[b-a] simplify to -Sin[a-b]?

Are there any important biographies of nobodies?

What are the effects of a ground plane under a horizontal dipole?

Has there been a multiethnic Star Trek character?

How to communicate to my GM that not being allowed to use stealth isn't fun for me?

How can I search for all contacts without email?

You have (3^2 + 2^3 + 2^2) Guesses Left. Figure out the Last one

Teaching a class likely meant to inflate the GPA of student athletes

With Ubuntu 18.04, how can I have a hot corner that locks the computer?

How can I get an unreasonable manager to approve time off?

Is it possible to have 2 different but equal size real number sets that have the same mean and standard deviation?

Russian word for a male zebra

Why not invest in precious metals?

Why was this person allowed to become Grand Maester?

Warning about needing "authorization" when booking ticket

Someone whose aspirations exceed abilities or means

Would a Ghostwise Halfling Druid be able to use silent speech while wild shaped?

How to safely destroy (a large quantity of) valid checks?

How to decline a wedding invitation from a friend I haven't seen in years?

Ability To Change Root User Password (Vulnerability?)

Cascading Switches. Will it affect performance?

Bb13b9 confusion

Heap allocation on microcontroller

Is it possible to fly backward if you have 'really strong' headwind?



How to disable Product Image Popup


Pinch zoom to only part of the websiteMagento2 : How to disable product image slider on detail page?Magento 2: How to set first image of slider in fotorama js after cancel fullscreen popup in product detail pageDisable product magnification / zoom in Magento 2Magento 2: How to remove zoom on hover on product image in view page?How to remove zoom on hover on product image in view page in Magento2?Product image not zooming in properly when hovering on image at product detail pageHow To Display Single Image Thumbnail in product detail page Magento 2Magento default zoom for product image is not working properlyHow can I implement zoom effect on image that is display when custom option is selected






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








2















In my product detail page, My product image can be Zoom/in and Popup(large image).



I only want product image to be "zoom/in" option.



How can I disable the popup image ?










share|improve this question






























    2















    In my product detail page, My product image can be Zoom/in and Popup(large image).



    I only want product image to be "zoom/in" option.



    How can I disable the popup image ?










    share|improve this question


























      2












      2








      2








      In my product detail page, My product image can be Zoom/in and Popup(large image).



      I only want product image to be "zoom/in" option.



      How can I disable the popup image ?










      share|improve this question
















      In my product detail page, My product image can be Zoom/in and Popup(large image).



      I only want product image to be "zoom/in" option.



      How can I disable the popup image ?







      magento2 zoom






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 1 at 7:46









      Rizwan Khan

      1,036626




      1,036626










      asked Sep 8 '14 at 6:21









      sorioffsorioff

      234




      234




















          3 Answers
          3






          active

          oldest

          votes


















          4














          Check app/design/frontend/package/theme/template/catalog/product/view/media.phtml.

          If your theme is somehow similar with the default one you should find something like this:



          <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>


          Focus on the popWin. That one opens the image in a new page.

          Remove this link and insert your logic for zoom in the same file.






          share|improve this answer























          • i removed those line, stil showing exactly the same window popup.

            – sorioff
            Sep 8 '14 at 7:58











          • Maybe you modified the wrong file. Enable template path hints to see what you need to modify:

            – Marius
            Sep 8 '14 at 7:59


















          0














          To disable the popup of product image, etc/view.xml and change this code.



          <var name="gallery">
          <var name="allowfullscreen">false</var> <!-- Turn on/off fullscreen (true/false) -->
          </var>





          share|improve this answer










          New contributor



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


























            0














            Add this code in appdesignfrontendVENDORYOUR_THEMEetcview.xml



            <?xml version="1.0"?>

            <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
            <vars module="Magento_Catalog">
            <var name="gallery">
            <var name="allowfullscreen">false</var>
            </var>
            </vars>
            </view>





            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%2f35034%2fhow-to-disable-product-image-popup%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              4














              Check app/design/frontend/package/theme/template/catalog/product/view/media.phtml.

              If your theme is somehow similar with the default one you should find something like this:



              <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>


              Focus on the popWin. That one opens the image in a new page.

              Remove this link and insert your logic for zoom in the same file.






              share|improve this answer























              • i removed those line, stil showing exactly the same window popup.

                – sorioff
                Sep 8 '14 at 7:58











              • Maybe you modified the wrong file. Enable template path hints to see what you need to modify:

                – Marius
                Sep 8 '14 at 7:59















              4














              Check app/design/frontend/package/theme/template/catalog/product/view/media.phtml.

              If your theme is somehow similar with the default one you should find something like this:



              <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>


              Focus on the popWin. That one opens the image in a new page.

              Remove this link and insert your logic for zoom in the same file.






              share|improve this answer























              • i removed those line, stil showing exactly the same window popup.

                – sorioff
                Sep 8 '14 at 7:58











              • Maybe you modified the wrong file. Enable template path hints to see what you need to modify:

                – Marius
                Sep 8 '14 at 7:59













              4












              4








              4







              Check app/design/frontend/package/theme/template/catalog/product/view/media.phtml.

              If your theme is somehow similar with the default one you should find something like this:



              <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>


              Focus on the popWin. That one opens the image in a new page.

              Remove this link and insert your logic for zoom in the same file.






              share|improve this answer













              Check app/design/frontend/package/theme/template/catalog/product/view/media.phtml.

              If your theme is somehow similar with the default one you should find something like this:



              <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>


              Focus on the popWin. That one opens the image in a new page.

              Remove this link and insert your logic for zoom in the same file.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 8 '14 at 7:19









              MariusMarius

              169k28329702




              169k28329702












              • i removed those line, stil showing exactly the same window popup.

                – sorioff
                Sep 8 '14 at 7:58











              • Maybe you modified the wrong file. Enable template path hints to see what you need to modify:

                – Marius
                Sep 8 '14 at 7:59

















              • i removed those line, stil showing exactly the same window popup.

                – sorioff
                Sep 8 '14 at 7:58











              • Maybe you modified the wrong file. Enable template path hints to see what you need to modify:

                – Marius
                Sep 8 '14 at 7:59
















              i removed those line, stil showing exactly the same window popup.

              – sorioff
              Sep 8 '14 at 7:58





              i removed those line, stil showing exactly the same window popup.

              – sorioff
              Sep 8 '14 at 7:58













              Maybe you modified the wrong file. Enable template path hints to see what you need to modify:

              – Marius
              Sep 8 '14 at 7:59





              Maybe you modified the wrong file. Enable template path hints to see what you need to modify:

              – Marius
              Sep 8 '14 at 7:59













              0














              To disable the popup of product image, etc/view.xml and change this code.



              <var name="gallery">
              <var name="allowfullscreen">false</var> <!-- Turn on/off fullscreen (true/false) -->
              </var>





              share|improve this answer










              New contributor



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























                0














                To disable the popup of product image, etc/view.xml and change this code.



                <var name="gallery">
                <var name="allowfullscreen">false</var> <!-- Turn on/off fullscreen (true/false) -->
                </var>





                share|improve this answer










                New contributor



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





















                  0












                  0








                  0







                  To disable the popup of product image, etc/view.xml and change this code.



                  <var name="gallery">
                  <var name="allowfullscreen">false</var> <!-- Turn on/off fullscreen (true/false) -->
                  </var>





                  share|improve this answer










                  New contributor



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









                  To disable the popup of product image, etc/view.xml and change this code.



                  <var name="gallery">
                  <var name="allowfullscreen">false</var> <!-- Turn on/off fullscreen (true/false) -->
                  </var>






                  share|improve this answer










                  New contributor



                  Manya Surve 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 answer



                  share|improve this answer








                  edited Jun 3 at 4:17





















                  New contributor



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








                  answered Jun 1 at 6:25









                  Manya SurveManya Surve

                  12




                  12




                  New contributor



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




                  New contributor




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























                      0














                      Add this code in appdesignfrontendVENDORYOUR_THEMEetcview.xml



                      <?xml version="1.0"?>

                      <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
                      <vars module="Magento_Catalog">
                      <var name="gallery">
                      <var name="allowfullscreen">false</var>
                      </var>
                      </vars>
                      </view>





                      share|improve this answer



























                        0














                        Add this code in appdesignfrontendVENDORYOUR_THEMEetcview.xml



                        <?xml version="1.0"?>

                        <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
                        <vars module="Magento_Catalog">
                        <var name="gallery">
                        <var name="allowfullscreen">false</var>
                        </var>
                        </vars>
                        </view>





                        share|improve this answer

























                          0












                          0








                          0







                          Add this code in appdesignfrontendVENDORYOUR_THEMEetcview.xml



                          <?xml version="1.0"?>

                          <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
                          <vars module="Magento_Catalog">
                          <var name="gallery">
                          <var name="allowfullscreen">false</var>
                          </var>
                          </vars>
                          </view>





                          share|improve this answer













                          Add this code in appdesignfrontendVENDORYOUR_THEMEetcview.xml



                          <?xml version="1.0"?>

                          <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
                          <vars module="Magento_Catalog">
                          <var name="gallery">
                          <var name="allowfullscreen">false</var>
                          </var>
                          </vars>
                          </view>






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jun 3 at 4:36









                          user4536user4536

                          15313




                          15313



























                              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%2f35034%2fhow-to-disable-product-image-popup%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

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                              Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?