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

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

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?