The Stack Overflow podcast is back! Listen to an interview with our new CEO.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
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 ...
0
votes
1answer
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, ...
0
votes
1answer
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 ...
2
votes
2answers
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. ...
3
votes
1answer
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 ...
3
votes
3answers
10k 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 ...
2
votes
3answers
6k views

How to check whether a block exist ( based on its type )

This really confuses me !! I came to a situation, where I need to create a new block (core/template block) programmatically, if there is CMS Block present in a page layout. In general case, according ...
1
vote
2answers
622 views

How can add a block to layout, if there is a CMS Block exist in the layout?

So here is the situation. I need to create a core/template block programmatically, if there is CMS Block(Static Block) is present in layout structure. I will use this template to add some content to ...
2
votes
0answers
49 views

Implimenting Custom Controller with payment option issues [closed]

I'm hoping someone can contribute to my complex issue. We have implemented a custom registration form with the aim of enrolling 'consultants'. Part of this enrollment is to order a special starter ...
1
vote
5answers
23k 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 ...
0
votes
1answer
112 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 ...
1
vote
3answers
4k views

pass data from module controller to layout

i make a simple module and i want to get all products of category and pass these products to my layout file. as well as i want to get products of a specific category and display these to my layout or ...
0
votes
2answers
235 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 ...
9
votes
4answers
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 ...
1
vote
3answers
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 ...
0
votes
1answer
460 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 ...
8
votes
1answer
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 ...
3
votes
2answers
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 ...
0
votes
1answer
931 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"&...
0
votes
1answer
142 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 ...
2
votes
1answer
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....
3
votes
2answers
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 ...
6
votes
1answer
8k views

Change the order of CSS files. Load module's CSS before theme's CSS

How can I change the order of CSS files to load module's CSS before theme's CSS? Here are some code examples: Theme's CSS file (loaded on all pages) added in theme's local.xml: <default> &...
2
votes
1answer
624 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 ...
1
vote
1answer
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 ...
14
votes
2answers
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. ...
36
votes
6answers
41k 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 ...