Skip to main content
edited body
Source Link

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?

I want to change the template just for one category. My first template referece witch 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?

I want to change the template just for one category. My first template referece which 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?

deleted 12 characters in body
Source Link

I want to change the template just for one category the template from the backend. My first template referece witch 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?

I want to change for one category the template from the backend. My first template referece witch 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?

I want to change the template just for one category. My first template referece witch 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?

I want to change for one category the tamplatetemplate from the backend. My firtfirst template referece witch is work for list_rent.phtmllist_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 iI try to set the template for details_rent.phtml it dosen'tdoesn't work, even iI use the same syntax and details_rent.phtmldetails_rent.phtml is located in product/viewproduct/view and list_rentlist_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?

I want to change for one category the tamplate from backend. My firt template referece witch 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 dosen'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?

I want to change for one category the template from the backend. My first template referece witch 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?

Source Link
Loading