---
title: "Magento 2: How to Show Product Magnification/Zoom in Product View Page"
url: "https://magecomp.com/blog/magento-2-how-to-show-product-magnification-zoom-product-view-page/"
date: "2020-06-29T10:00:47+00:00"
modified: "2025-02-20T10:51:36+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 476
reading_time: "3 min read"
summary: "Hello Magento Friends?,"
description: "How to show product magnification/zoom in product view page for your Magento 2 store that will help your customers to view the product images more magnified"
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Add Form Key in phtml File in Magento 2?"
    url: "https://magecomp.com/blog/add-form-key-in-phtml-file-in-magento-2/"
  - title: "How to Reset Customer Password using Console Command in Magento 2?"
    url: "https://magecomp.com/blog/reset-customer-password-using-console-command-magento-2/"
  - title: "7+ Top Magento 2 Duplicate Categories Extension Providers [2026]"
    url: "https://magecomp.com/blog/top-magento-2-duplicate-categories-extension-providers/"
---

# Magento 2: How to Show Product Magnification/Zoom in Product View Page

_Published: June 29, 2020_  
_Author: Dhiren Vasoya_  

![How to Show Product Magnification zoom in Product View Page in m2](https://magecomp.com/blog/wp-content/uploads/2020/06/How-to-Show-Product-Magnification-zoom-in-Product-View-Page-in-m2-1024x512.webp)

**Hello Magento Friends?,**

Today I will help you How to show product magnification/zoom in product view page for your Magento 2 store. Also, check out the last blog published [**How to add Dynamic CSS Using Page Assets in Magento 2**](https://magecomp.com/blog/add-dynamic-css-using-page-assets-magento-2/). Let’s Dive In?
[![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-2.webp)](https://magecomp.com/services/magento-upgrade-services/)

## Introduction:
In online business, the product images matter a lot. The images should be clear to view from the customer’s perspectives. And including the zoom option would be better to recognize the product by the customers. This will help you in converting the users to the customers and also helps in improving customer experience.
## Steps to show product magnification/zoom in product view page:
**Step 1:** Firstly, navigate to the below path and change code accordingly.
**app\design\frontend\Themes\Yourtheme\etc\view.xml**

And find below code :
```
<var name="magnifier">
            <var name="fullscreenzoom">20</var>  <!-- Zoom for fullscreen (integer)-->
            <var name="top"></var> <!-- Top position of magnifier -->
            <var name="left"></var> <!-- Left position of magnifier -->
            <var name="width"></var> <!-- Width of magnifier block -->
            <var name="height"></var> <!-- Height of magnifier block -->
            <var name="eventType">hover</var> <!-- Action that atcivates zoom (hover/click) -->
            <var name="enabled">false</var> <!-- Turn on/off magnifier (true/false) -->
	    <var name="mode">outside</var> <!-- Zoom type (outside/inside) -->
</var>
```

[![Magento 2 Speed & Performance Optimization Services](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Speed-Performance-Optimization-Services-CTA-3.webp)](https://magecomp.com/magento-performance-optimization.html)

**And replace below code :**

```
<var name="magnifier">
            <var name="fullscreenzoom">10</var>  <!-- Zoom for fullscreen (integer)-->
            <var name="top">500</var> <!-- Top position of magnifier -->
            <var name="left">650</var> <!-- Left position of magnifier -->
            <var name="width">200</var> <!-- Width of magnifier block -->
            <var name="height">200</var> <!-- Height of magnifier block -->
            <var name="eventType">hover</var> <!-- Action that atcivates zoom (hover/click) -->
            <var name="enabled">true</var> <!-- Turn on/off magnifier (true/false) -->
            <var name="mode">outside</var> <!-- Zoom type (outside/inside) -->
</var>
```

That’s it. After changing the code run Magento clean and flush command.
## Conclusion:
Therefore by applying the above steps you will be able to show product magnification/zoom in the product view page. If any problems I will be happy to hear in the comment section below. Do share the article with your developer friends.
[![hyva theme development](https://magecomp.com/blog/wp-content/uploads/2025/02/hyva-theme-development-CTA-5.webp)](https://magecomp.com/services/hyva-theme-development/)

**Happy Coding?**


---

_View the original post at: [https://magecomp.com/blog/magento-2-how-to-show-product-magnification-zoom-product-view-page/](https://magecomp.com/blog/magento-2-how-to-show-product-magnification-zoom-product-view-page/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-08-01 12:36:03 UTC_  
