I want to change the template just for one category.
My first template referece witchwhich is work for list_rent.phtml
is the following one:
<referenceBlock name='category.products.list'>
<action method='setTemplate'>
<argument name='template' xsi:type='string'>Magento_Catalog::product/list_rent.phtml</argument>
</action>
</referenceBlock>
but when I try to set the template for details_rent.phtml it doesn't work, even I use the same syntax and details_rent.phtml
is located in product/view
and list_rent
in product
<referenceBlock name='product.info.details'>
<action method='setTemplate'>
<argument name='template' xsi:type='string'>Magento_Catalog::product/view/details_rent.phtml</argument>
</action>
</referenceBlock>
Can anyone give me a suggestion?