3

This is my XML file.

<referenceBlock name="category.products.list">
  <action method="setTemplate">
    <argument name="template" xsi:type="string" cacheable="false">Company_Module::product/list.phtml</argument>
  </action>
</referenceBlock>

In the list.phtml file.

I have displayed a pop-up on the basis of customer session value (customer logged in/not). On enabling cache in the backend, I am not getting customer session value (customer logged in) hence pop up is not coming. The module is working fine if a cache is disabled. How can we set cacheable=false for overwritten template files in XML?

  • Please give me a solution.Thanks in advace – V.P Dec 15 '16 at 9:00

Your Answer

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

Browse other questions tagged or ask your own question.