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;
Consider the Below Image
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
magento-1.9 layout template custom-block grid-layout
add a comment |
Consider the Below Image
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
magento-1.9 layout template custom-block grid-layout
add a comment |
Consider the Below Image
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
magento-1.9 layout template custom-block grid-layout
Consider the Below Image
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
magento-1.9 layout template custom-block grid-layout
magento-1.9 layout template custom-block grid-layout
edited Jan 7 '16 at 11:33
johnyBaba
asked Jan 7 '16 at 10:51
johnyBabajohnyBaba
62
62
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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