Skip to content

Add option to easily remove default product gallery while keeping swatch functionalities. (Feature request) #4249

@janakadombawela

Description

@janakadombawela

I wanted to remove the default product gallery (slider and zoom plugin: fotorama). So I tried to play around with: app\design\frontend\Mypackage\mytheme\Magento_Catalog\templates\product\view\gallery.phtml code:

<script type="text/x-magento-init"> { "[data-gallery-role=gallery-placeholder]": { "mage/gallery/gallery": { //the code } } </script>

and

app\design\frontend\Mypackage\mytheme\etc\view.xml code, but no luck. Of course removing and/or replacing gallery.phtml will remove the gallery but it will also remove the swatch functionalities.

After lot of effort and stackexchange questions I found no-way of doing this. So if there is a way to do this it would be great. Thanks.

Relevant questions:

Magento Stack Exchange

Stack Overflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions