cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2: how to add custom extension to product photos

Magento 2: how to add custom extension to product photos

I have a module that outputs an iframe. I need to place it in the place of the photographs, so that the photographs are also there. That is, the user can view photos and optionally switch to my module.

<?xml version="1.0"?><page layout="1columns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>    
    <referenceContainer name="content">
        <block class="Magento\Framework\View\Element\Template"  template="Name::name.phtml" />
    </referenceContainer>
</body>

referenceContainer name="content" - therefore it is at the end of the page. But need to place it with photos. Нelp me please

1 REPLY 1

Re: Magento 2: how to add custom extension to product photos

Hello @anna_moroz 

 

Please refer these links to fulfill your requirements:

https://magento.stackexchange.com/questions/195541/how-add-div-after-image-block-in-magento-2

 

https://magento.stackexchange.com/questions/254855/how-to-get-product-video-in-product-listing-page-...

 

Hope it helps.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"