Magento 2.2.7

I've placed my version of Wishlist list.phtml in my template directory at


However, this is not being used. Template hints shows its calling the default Magento Block & templates, vis



If I use a layout file to declare my my phtml file then I get an error about data not being available;

    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <referenceBlock name="customer.wishlist" >
        <action method="setTemplate">
            <argument name="template" xsi:type="string">Magento_Wishlist::item/list.phtml</argument>

Do I have to declare my own module to override Magento's Wishlist?

  • 1
    you don't need to override layout,if you overriding default magento theme file in your custom theme then it should automatically reflect – Hitesh Balpande Apr 11 '19 at 14:42
  • please do compile, upgrade, deploy and clear cache in this order,may be it will work – Hitesh Balpande Apr 11 '19 at 14:43
  • As per as, my idea your reference name is wrong .it should be customer.wishlist.items instead of ``customer.wishlist` <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <referenceBlock name="customer.wishlist" template="YourTemplatefile" /> </page> – Amit Bera Apr 11 '19 at 14:48


The reason your template is not being used is becasue your path is incorrect, you are specifying template not templates if you change this your overwrite should work fine

  • Sometimes it's the simplest oversights! Thanks for your help here. – Freshwebs Apr 18 '19 at 9:56
  • @Freshwebs glad your issue is resolved – Dava Gordon Apr 18 '19 at 9:57
  • This is one of the minor annoyances re: Magento. We have layout, which can contain multiple files, & templates, which might contain a single file. Shouldn't they all be plural?? – Freshwebs Apr 18 '19 at 9:58

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.