Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
106 views

Page Layout for Categories using XML

I want to have a specific layout for some of my category pages but instead of always using the XML Layout Update <reference name="right"> <remove name="left.reports.product.viewed"/> <...
seb's user avatar
  • 3,572
2 votes
2 answers
6k views

Magento custom module - cannot load layout file via XML

A very common issue, but can't get my head around this one. Just not able to load the custom layout I want to display under the Admin tab content of my custom module via XML layout file (something ...
Utkarsh Mishra's user avatar
1 vote
1 answer
375 views

Product View gets broken

quick thing, to start, we have a module that is displayed in the sidebar and it gets the product id with the Mage::registry('current_product')->getId(); in the first time is rendering with no problem, ...
Luciano Felisiak's user avatar
2 votes
2 answers
976 views

Can I use an observer to insert my module block into product.info?

I want my custom block to be dependent on whether my module is enabled or not and I want do not want it to be dependent on a theme so using the following, for example, is out of the question: /catalog/...
tylersDisplayName's user avatar
2 votes
2 answers
956 views

What is difference between files in Block and files in Layout folder?

I am a newbie in Magento and its very confusing. I read files for view come from Layout folder , then i read somewhere that view is managed by files in Block folder.What is true ? Its totally ...
Pratik Joshi's user avatar
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
0 votes
1 answer
1k views

can't override checkout/total/default.phtml

If I copy the file default.phtml from design/frontend/base/default/template/checkout/total/ to my theme folder (design/frontend/my_package/my_theme/template/checkout/total/default.phtml) everything is ...
lounik's user avatar
  • 1
0 votes
1 answer
2k views

Navigation menu : page.xml doesn't call the overridden class (topmenu.php)

EDIT : solved by Jonathan Hussey. See at the end of post (or below) for another question if you want to help me about overridding template and layout :) subsidiary question : Can I override page.xml, ...
Florian's user avatar
0 votes
1 answer
1k views

module layout problem (display and redirection)

I have made a module with a contact form. The Submit button calls a controller which get $ post and send emails both to client and admin. I would like after form submission to redirect to the form ...
Alexglvr's user avatar
  • 1,675
2 votes
2 answers
4k views

New Custom Module Page Layout not Showing in CMS Drop Down

I have created a new custom-module for unique page layouts to be used for certain cms-pages within magento-1.9.0.1. The module appears and is enabled in admin > configuration > advanced menu. ...
Mathew Porter's user avatar
3 votes
1 answer
1k views

XML Module Product Page custom options.phtml problem

I've a module in magento which is creating a new view of the product page, by calling a new options.phtml file. the problem I have is that if I call, via ajax, this modified product page view, with ...
Ferdinando's user avatar
3 votes
3 answers
11k views

Admin layout file not loading in custom module

I'm trying to load in a block on one of my admin pages in a custom module, but it doesn't appear to be loading. At first I thought it was a handle issue, but I've found out that the handle is ...
Thierry's user avatar
  • 133
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
0 votes
1 answer
131 views

Display strings from blocks layout?

Here is the link with the result. In the image you can see the path of all files : this is my Attila3->HelloWorld->Block->HelloWorld.php file : <?php class Attila3_HelloWorld_Block_Index ...
Attila Naghi's user avatar
  • 4,093
0 votes
2 answers
253 views

top links only loading log in link

I'm writing a new layout file for a custom module. As part of this I need to include the toplinks eg. log in, cart + (quantity), my account, wishlist and also recently viewed and nothing else. My ...
develophper's user avatar
  • 2,214
9 votes
4 answers
53k views

Adding CSS and JS to <head> using a module layout.xml for block

Synopsis I would like to add a block to my grouped product view and my simple product view. This block will have some nice tooltips for hover states, i'm using a small library with one jquery plugin ...
Ash's user avatar
  • 1,746
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
586 views

Show admin action with out login in

I need to show a page with out having the admin user log in. They need to move from http://local.mage.dev/index.php/admin/ http://local.mage.dev/index.php/admin/wsu/requestaccess/ With out loggin ...
Quantum's user avatar
  • 553
8 votes
1 answer
7k views

Cannot get custom frontend ajax layout to load

I always have challenges identifying the proper handles for everything, so please bear with me here. I've scoured Google, SE, and tried myriad variations, with no luck. (And yes, I've used ...
random_user_name's user avatar
3 votes
2 answers
7k views

Load Custom Admin Template

Developing a simple custom module, and the hardest part is getting the template to load in the admin. I'm sure I'm missing something simple (but important). The template will not load. I believe ...
random_user_name'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
0 votes
1 answer
151 views

layout handle for add button to newsletter edit template in adminhtml

I develop module for add new button in newsletter edit template in adminhtml. And don't know which layout handle must use in my layout xml. I try something like this but did not work: <layout ...
srdan's user avatar
  • 348
2 votes
1 answer
4k views

Check If JQuery Is Already Included In Head

I want to check if jQuery is already included on the page. I have seen several methods and finally settled on the following: if ( (typeof jQuery === 'undefined') || !window.jQuery ) { document....
Jongosi's user avatar
  • 1,531
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
2 votes
1 answer
671 views

add block to Authorize.net payment template

in the app/design/frontend/base/default/template/payment/form/cc.phtml template, around line 76, there is a spot to echo out child html. how do I reference that block to add a child into it? I'm ...
veilig's user avatar
  • 550
1 vote
1 answer
1k views

Can't get my module layout to work

I'm just trying to test my module by adding some text to the homepage and I can't seem to get this to work. I'm on Magento 1.7.0.2. Magento is aware of my module, I already checked that. Here is my ...
jstrez77's user avatar
  • 772
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
37 votes
6 answers
43k views

Debugging layout XML loading

TL;DR: is there a way I can debug the loading of the layout? As I believe one module's layout is conflicting with another. Related to a previous question I made: How to make a module layout to be ...
Yaroslav's user avatar
  • 752

1 2
3