Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
3k views

Adding custom block to catalog product view

I'm currently making my own module, but i'm having trouble with just displaying a block in the catalog product view. I've added this line to default/layout/catalog.xml <block type="catalog/...
leu2tm's user avatar
  • 13
3 votes
1 answer
2k views

custom module layout not working

I've been fighting a while with a problem, but I can't find a solution. Here is the thing: Got a module that I need to show in the sidebar of catalog product view so this is my module.xml in default/...
lfelisiak's user avatar
1 vote
5 answers
24k views

Warning: include(): failed to open stream: No such file or directory

In app/code/local/AB/CarLocator/controllers/Adminhtml/CarlocatorController.php code I have: class AB_CarLocator_Adminhtml_CarlocatorController extends Mage_Adminhtml_Controller_Action { public ...
Urik's user avatar
  • 111
1 vote
3 answers
12k views

Magento custom block shows Fatal error: Call to a member function setTemplate() on a non-object

I have created one block inside my custom module but it's not working. My module is working fine but my block is not working when I call my block from footer.phtml file it shows 'Fatal error: Call to ...
monojit banik's user avatar
0 votes
1 answer
933 views

Magento module's block code is working in product details page but not working in category and list page?

In magento I am writing one module. In my module lets say I have mymodule.xml where I want to insert my own block after this block <catalog_product_view> <reference name="product.info"&...
NewUser's user avatar
  • 149
3 votes
2 answers
2k views

Reference a block in static page

I have a static page in which I call a dynamic block: {{block type="custommodule/search" name="custommodule_search" template="custommodule/search.phtml" }} In the layout file of my custom module I'm ...
user avatar
14 votes
2 answers
32k views

Adding custom layouts for CMS and Category use with custom module trouble

I have a category in my store that requires a totally different layout to the standard Magento layouts. So I created a new copy of the 1column.phtml and renamed it and made one small change to test. ...
Chris Morris's user avatar
  • 1,517