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;
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
add a comment |
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
add a comment |
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
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
magento2 zoom
edited Jun 1 at 7:46
Rizwan Khan
1,036626
1,036626
asked Sep 8 '14 at 6:21
sorioffsorioff
234
234
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
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
add a comment |
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>
New contributor
add a comment |
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>
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
);
);
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%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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
answered Sep 8 '14 at 7:19
Marius♦Marius
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
add a comment |
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
add a comment |
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>
New contributor
add a comment |
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>
New contributor
add a comment |
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>
New contributor
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>
New contributor
edited Jun 3 at 4:17
New contributor
answered Jun 1 at 6:25
Manya SurveManya Surve
12
12
New contributor
New contributor
add a comment |
add a comment |
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>
add a comment |
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>
add a comment |
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>
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>
answered Jun 3 at 4:36
user4536user4536
15313
15313
add a comment |
add a comment |
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%2f35034%2fhow-to-disable-product-image-popup%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