2

I want to remove zoom functionality from product image on product view page, but I am not sure how to do so.
It will be a great help if anyone can guide me to achieve this.
I have tried below code in app/design/frontend/Custom/theme/etc/view.xml

<vars module="Magento_Catalog">
        <var name="magnifier">
            <var name="enabled">false</var> <!-- Turn on/off magnifier (true/false) -->
        </var>
    </vars>

But it is not working.

1

Change below code in view.xml under <var name="gallery">:

<var name="allowfullscreen">false</var>
  • clear cache
| improve this answer | |
  • Sorry, it is not working for me. – Anshu Mishra Nov 30 '16 at 8:41
  • Have you clear cache? Please make this change in active theme. – Dipesh Rangani Nov 30 '16 at 9:49
  • Yes, I have cleared the cache. – Anshu Mishra Nov 30 '16 at 10:15
  • Remove var and pub/static/fronted folders and deploy content again. – Dipesh Rangani Nov 30 '16 at 10:45
  • Tried, but didn't work. – Anshu Mishra Nov 30 '16 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.