Questions tagged [template]

The folder that contains all the `phtml` files used to display at frontend or backend.

Filter by
Sorted by
Tagged with
1
vote
2answers
543 views

Is there any way to tell where a page element is loaded from in Magento?

When I see a page that uses Magento, is there any way for me to know where the elements on the page loaded from? How can I know if something is loaded from a static block or from a file somewhere? And ...
0
votes
1answer
181 views

Block creation in magento

Well I have created a block in my XML file with a type as one of my PHP class file and I also gave the template, name and as parameters, but unfortunately I am unable to get that block on my page. I ...
3
votes
2answers
1k views

Add custom menus to magento

I need to add menus like here http://www.pickormiss.com as given here like Vegetables, Meatshops, Restaurant, Gift shops etc. How can I add such pages so, that it can be customized from the dashboard?...
2
votes
1answer
33k views

How do I change Magento's default page template for the product description page?

How can I change Magento's default page template for product detailed/ single/ description page? By default, it is always pulling this template, frontend\MY_WEBSITENAME\default\template\page/...
1
vote
1answer
10k views

Adding a custom block to the cms home page

I want to modify the layout in page.xml in layout folder for the cms home page. This is the original xml code, <block type="core/text_list" name="content" as="content" translate="label"> <...
0
votes
1answer
8k views

Magento Add Extra field in Address form [closed]

I need to add some extra fields to the existing customer address form in magento. Please help.
1
vote
1answer
193 views

After setting up a subsite, how to change template to same as default but showing diff catalog?

I have several subsites that I've set up on a site I've inherited where there needs to be several sites with differing domains. I found this tutorial and these two screencasts (Part 1 & Part 2) ...
3
votes
1answer
6k views

Multi-Store issues with loading some template files/skins

We're having an issue here, where some stores load the store view with Magento defaults (only one of them does this out of 7 of them). SetEnvIf for MAGE_RUN_CODE is set in .htaccess based on request ...
3
votes
2answers
6k views

Handling AJAX requests to display template partials

Pretty new to magento and I'm setting up a custom module to override the core newsletter. All I really want to do is add ajax submit to the form, which is straightforward so far, and also allow the ...
0
votes
2answers
166 views

I am trying to re-size a container: col-2 registered users.

When landing on http://designozstudio.com/magento/index.php/customer/account/login/ there are 2 buttons: 'login' and 'create account'. The login button is in a block or container and the width is ...
3
votes
1answer
4k views

Use template/block in a helper

I have a helper with this method to get the items in a customer's cart public function getCartData() { //Get cart DATA $quote = Mage::getSingleton('checkout/session')->getQuote(); $...
0
votes
2answers
123 views

General question regarding modules / extensions

I'm working for a computer components store. My end goal is to make a 'Build your own computer' page where customers can pick components from each category (CPU, Memory, etc) and add them all to the ...
2
votes
1answer
3k views

check if template file exists before rendering block

for a given template file string, is it possible to check that it exists before the block is rendered and if not choose a different template to render. my block therefore has a template set to ...
0
votes
1answer
300 views

x% OFF tag in product listings, home and details page

I would like to add a x% OFF tag in products in home, listings, and product page, except for certain SKUs and categories. This would be easily done by a catalog price rule. My problem is that this ...
1
vote
1answer
459 views

Product Page is Blank pointing to non existant template frontend/base/default/template/page/column.phtml

I am going a little mad trying to figure out why the product page for my site is pointing to frontend/base/default/template/page/column.phtml which does not exist. Any help here will be greatly ...
2
votes
3answers
95 views

Should Magento css classes be kept when creating a new theme?

I read an article once that said when creating your own Magento theme that you should keep the default class/id names? I heard it's best to keep these in place as some modules reference these ...
-1
votes
4answers
366 views

Adding values from custom model as CSS in templates

I have a module that needs to display specific CSS values for each entry in my custom model collection. This is trivial enough, as I can simply echo these values with PHP in my template as needed; ...
3
votes
3answers
575 views

Template hints under global scope

Is there any reason why template hints are not available in the global scope?
1
vote
1answer
63 views

Custom Extension Need to save Input Text and Output It in the Template

Here is what I have so far. I am not sure how to save the text fields (url's) and insert them into the template. Any help with this would be great :) config.xml http://pastebin.com/UZfVLs6P system....
12
votes
1answer
3k views

Messages block not using theme template

I am trying to change the phtml file for the messages block. I found in the base theme template/core/messages.phtml and copied that over to my theme and made the changes. My changes didn't show so I ...
0
votes
2answers
806 views

Adding a custom area for blocks in a custom layout

Ok, So I've made a module and use it to manage all the custom layouts on my store. Now I need to just add some blocks to certain pages using the template. I added the following line to my custom ...
1
vote
3answers
5k views

how to change customer login page into 2 column page

I am using Facebook connect and like plugin On Login or Create an Account page, i want two columns page. currently its one column <reference name="root"> <action method="...
0
votes
2answers
433 views

Downside of using Mage::getModel and load/getCollection in a template file

What would be the downside of using Mage::getModel (+ load, getCollection) in a template? I've seen quite a few templates with this logic put directly in the template instead of using the block?
1
vote
2answers
2k views

layout - call left column block within main column (in the 1column.phtml template)

I have a category list page which uses the 1column.phtml template. However, when the user navigates to a category where there are no subcategories - and only its products are displayed - I would like ...

1
24 25 26 27
28