How to override or extend Product List Page template to show Icon on Product Images in Magento ExtensionShow block and template from other extensionConditionally hiding and showing block and linksMagento is not saving new field in database even after flush cache storageModify Product Page layout through ExtensionMagento how to add new select box in product view toolbar section without change .phtml fileHow to override product list pageHow Can I Show My Custom admin module's field's data in frontend (in a popup) in magento 1.9?How to override an extension admin templatecall search form in custom module Magento 1.9Load extra category to a category product list page

If Sweden was to magically float away, at what altitude would it be visible from the southern hemisphere?

Order by does not work as I expect

What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?

Applicants clearly not having the skills they advertise

Is there any Biblical Basis for 400 years of silence between Old and New Testament?

Why use water tanks from a retired Space Shuttle?

What are the problems in teaching guitar via Skype?

If a problem only occurs randomly once in every N times on average, how many tests do I have to perform to be certain that it's now fixed?

What is the most important characteristic of New Weird as a genre?

How crucial is a waifu game storyline?

Rotated Position of Integers

What does War Machine's "Canopy! Canopy!" line mean in "Avengers: Endgame"?

Why does the UK have more political parties than the US?

Are grass strips more dangerous than tarmac?

Modern approach to radio buttons

Strange math syntax in old basic listing

Why were the Night's Watch required to be celibate?

What people are called "кабан" and why?

What does the behaviour of water on the skin of an aircraft in flight tell us?

Accidentally cashed a check twice

How do I get a cleat that's stuck in a pedal, detached from the shoe, out?

How to properly maintain eye contact with people that have distinctive facial features?

Why is there a need to modify system call tables in Linux?

Why is Colorado so different politically from nearby states?



How to override or extend Product List Page template to show Icon on Product Images in Magento Extension


Show block and template from other extensionConditionally hiding and showing block and linksMagento is not saving new field in database even after flush cache storageModify Product Page layout through ExtensionMagento how to add new select box in product view toolbar section without change .phtml fileHow to override product list pageHow Can I Show My Custom admin module's field's data in frontend (in a popup) in magento 1.9?How to override an extension admin templatecall search form in custom module Magento 1.9Load extra category to a category product list page






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Consider the Below Image
enter image description here



I want to show an Icon on the Image of each product. I am developing an extension and I want to do this task via that extension, independent of theme. How can I achieve this task. what Blocks I've to extend. Any kind of suggestion and help will be appreciable.
Thanks in advance.



Updated:



After adding the suggested code I'm getting the below error
enter image description here










share|improve this question






























    0















    Consider the Below Image
    enter image description here



    I want to show an Icon on the Image of each product. I am developing an extension and I want to do this task via that extension, independent of theme. How can I achieve this task. what Blocks I've to extend. Any kind of suggestion and help will be appreciable.
    Thanks in advance.



    Updated:



    After adding the suggested code I'm getting the below error
    enter image description here










    share|improve this question


























      0












      0








      0








      Consider the Below Image
      enter image description here



      I want to show an Icon on the Image of each product. I am developing an extension and I want to do this task via that extension, independent of theme. How can I achieve this task. what Blocks I've to extend. Any kind of suggestion and help will be appreciable.
      Thanks in advance.



      Updated:



      After adding the suggested code I'm getting the below error
      enter image description here










      share|improve this question
















      Consider the Below Image
      enter image description here



      I want to show an Icon on the Image of each product. I am developing an extension and I want to do this task via that extension, independent of theme. How can I achieve this task. what Blocks I've to extend. Any kind of suggestion and help will be appreciable.
      Thanks in advance.



      Updated:



      After adding the suggested code I'm getting the below error
      enter image description here







      magento-1.9 layout template custom-block grid-layout






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 7 '16 at 11:33







      johnyBaba

















      asked Jan 7 '16 at 10:51









      johnyBabajohnyBaba

      62




      62




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You can do this with a layout XML file inside of your module. In this layout XML file you can reference product list block and change it's template.



          <layout>
          <catalog_category_default>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_default>
          <catalog_category_layered>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_layered>
          </layout>


          I hope it will help.






          share|improve this answer























          • Please check update in question I'm getting errors after including the code

            – johnyBaba
            Jan 7 '16 at 11:35











          • Can you share your module's layout xml?

            – Shyam
            Jan 7 '16 at 11:44












          • Also enable error reporting on site so that you can debug the issue. You can follow below link to enable error reporting: stackoverflow.com/questions/17143406/…

            – Shyam
            Jan 7 '16 at 11:46












          • Also replace template file path with correct once.

            – Shyam
            Jan 7 '16 at 11:57












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f96315%2fhow-to-override-or-extend-product-list-page-template-to-show-icon-on-product-ima%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You can do this with a layout XML file inside of your module. In this layout XML file you can reference product list block and change it's template.



          <layout>
          <catalog_category_default>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_default>
          <catalog_category_layered>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_layered>
          </layout>


          I hope it will help.






          share|improve this answer























          • Please check update in question I'm getting errors after including the code

            – johnyBaba
            Jan 7 '16 at 11:35











          • Can you share your module's layout xml?

            – Shyam
            Jan 7 '16 at 11:44












          • Also enable error reporting on site so that you can debug the issue. You can follow below link to enable error reporting: stackoverflow.com/questions/17143406/…

            – Shyam
            Jan 7 '16 at 11:46












          • Also replace template file path with correct once.

            – Shyam
            Jan 7 '16 at 11:57
















          0














          You can do this with a layout XML file inside of your module. In this layout XML file you can reference product list block and change it's template.



          <layout>
          <catalog_category_default>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_default>
          <catalog_category_layered>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_layered>
          </layout>


          I hope it will help.






          share|improve this answer























          • Please check update in question I'm getting errors after including the code

            – johnyBaba
            Jan 7 '16 at 11:35











          • Can you share your module's layout xml?

            – Shyam
            Jan 7 '16 at 11:44












          • Also enable error reporting on site so that you can debug the issue. You can follow below link to enable error reporting: stackoverflow.com/questions/17143406/…

            – Shyam
            Jan 7 '16 at 11:46












          • Also replace template file path with correct once.

            – Shyam
            Jan 7 '16 at 11:57














          0












          0








          0







          You can do this with a layout XML file inside of your module. In this layout XML file you can reference product list block and change it's template.



          <layout>
          <catalog_category_default>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_default>
          <catalog_category_layered>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_layered>
          </layout>


          I hope it will help.






          share|improve this answer













          You can do this with a layout XML file inside of your module. In this layout XML file you can reference product list block and change it's template.



          <layout>
          <catalog_category_default>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_default>
          <catalog_category_layered>
          <reference name="product_list">
          <action method="setTemplate">
          <template>yourmodule/product/list.phtml</template>
          </action>
          </reference>
          </catalog_category_layered>
          </layout>


          I hope it will help.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 7 '16 at 11:07









          ShyamShyam

          1,4121028




          1,4121028












          • Please check update in question I'm getting errors after including the code

            – johnyBaba
            Jan 7 '16 at 11:35











          • Can you share your module's layout xml?

            – Shyam
            Jan 7 '16 at 11:44












          • Also enable error reporting on site so that you can debug the issue. You can follow below link to enable error reporting: stackoverflow.com/questions/17143406/…

            – Shyam
            Jan 7 '16 at 11:46












          • Also replace template file path with correct once.

            – Shyam
            Jan 7 '16 at 11:57


















          • Please check update in question I'm getting errors after including the code

            – johnyBaba
            Jan 7 '16 at 11:35











          • Can you share your module's layout xml?

            – Shyam
            Jan 7 '16 at 11:44












          • Also enable error reporting on site so that you can debug the issue. You can follow below link to enable error reporting: stackoverflow.com/questions/17143406/…

            – Shyam
            Jan 7 '16 at 11:46












          • Also replace template file path with correct once.

            – Shyam
            Jan 7 '16 at 11:57

















          Please check update in question I'm getting errors after including the code

          – johnyBaba
          Jan 7 '16 at 11:35





          Please check update in question I'm getting errors after including the code

          – johnyBaba
          Jan 7 '16 at 11:35













          Can you share your module's layout xml?

          – Shyam
          Jan 7 '16 at 11:44






          Can you share your module's layout xml?

          – Shyam
          Jan 7 '16 at 11:44














          Also enable error reporting on site so that you can debug the issue. You can follow below link to enable error reporting: stackoverflow.com/questions/17143406/…

          – Shyam
          Jan 7 '16 at 11:46






          Also enable error reporting on site so that you can debug the issue. You can follow below link to enable error reporting: stackoverflow.com/questions/17143406/…

          – Shyam
          Jan 7 '16 at 11:46














          Also replace template file path with correct once.

          – Shyam
          Jan 7 '16 at 11:57






          Also replace template file path with correct once.

          – Shyam
          Jan 7 '16 at 11:57


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f96315%2fhow-to-override-or-extend-product-list-page-template-to-show-icon-on-product-ima%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form