Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 146

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

4
votes
I don't think you can load a conditional layout handle from the xml. You will have to do this in an observer. Use the event controller_action_layout_load_before. Something like this: public functi …
answered Apr 30 '14 by Marius
1
vote
subcategories of a certain category and a template that displays them. Let's call the module Easylife_Catalog. You will need the following files. app/etc/modules/Easylife_Catalog.xml - the declaration … ->_products[$subcategory->getId()] = $products; } return $this->_products[$subcategory->getId()]; } } app/design/frontend/base/default/template/easylife_catalog/category.phtml - the …
answered Dec 11 '14 by Marius
1
vote
The template path hints are generated in Mage_Core_Block_Template::fetchView(). Unfortunately the styles are hardcoded in the block class and cannot be changed via css. Because this class is used as …
answered May 21 '15 by Marius
4
votes
using it in template file. See how this method looks Mage_Core_Block_Template::fetchView(). This is the method responsible for rendering a block via a template. Notice this code: $includeFilePath … valid template file:'.$fileName, Zend_Log::CRIT, null, null, true); } The template file is actually included in the method. The think that must look strange to you if you come from the world of JAVA is how include works for PHP. …
answered Jan 23 '14 by Marius
7
votes
You can get the current page like this: $pageId = Mage::app()->getRequest()->getParam('page_id', Mage::app()->getRequest()->getParam('id', false)); $page = Mage::getModel('cms/page')->load($pageId); …
answered Feb 21 '14 by Marius
7
votes
You should never redirect to the homepage from a template. Do that from the controller before any output is done. You can use the code that DavidManners gave you, but do it before you call renderLayout in the controller. …
answered Sep 15 '14 by Marius
2
votes
You can add the files to app/design/offsite without any issues. When showing some information about the available themes magento only loops through the folders under the frontend and adminhtml areas. …
answered Mar 18 '14 by Marius
1
vote
If your style is dynamic, why not use inline styles. I know it's not clean, but it's cleaner than adding a style tag in your template. Just add in one of your css files this: .custom-item … { display: block; padding: 20px; } IN this class you can add all the common properties for your items and in the template just do this: <?php foreach ($models as $model): ?> <?php $color = $model …
answered Mar 15 '13 by Marius
0
votes
You should find the layout handle <ops_payment_placeform> in the module layout file and add this inside it <update handle="page_one_column" /> And clear the cache.
answered Aug 30 '13 by Marius
3
votes
If inside the class $this->setTemplate('Vendor_Module::path/to/template.phtml'); if outside, then $block->setTemplate('Vendor_Module::path/to/template.phtml'); where $block is the instance of y …
answered Aug 25 '15 by Marius
1
vote
I assume you are talking about the "Print" button in the admin order view page. That has no template, it uses Zend_Pdf to generate the pdf file. The action that handles this is …
answered Sep 4 '13 by Marius
2
votes
Try the following <my_handle> <!-- create custom handle to avoid duplication --> <reference name="header"> <action method="setTemplate"> <template>page/html/header_b.phtml … </template> </action> </reference> </my_handle> <catalog_category_default> <!-- apply handle to default category handle--> <update handle="my_handle" /> </catalog_category_default …
answered Dec 18 '13 by Marius
4
votes
do this: <product_child_of_grouped> <reference name="product.info"> <action method="setTemplate"> <template>path/to/template.phtml</template> </action …
answered Mar 7 '16 by Marius
2
votes
'); $optionRenderers = array( 'text' => array ( 'block' => ' catalog/product_view_options_type_text', 'template' => 'catalog/product/view/options/type … /text.phtml', ), 'file' => array ( 'block' => ' catalog/product_view_options_type_file', 'template' => 'catalog/product/view/options/type/file.phtml …
answered Dec 22 '16 by Marius
1
vote
Then your template can look like this <?php if ($this->getData('product_id')) : $productId = $this->getData('product_id'); $_product = Mage::getModel('catalog/product')->load($productId … ); ?> <p>The price for product 51 is £<?php echo $_product->getFinalPrice()?></p> <?php endif;?> Then you can use it like this: You can do it like this in one place: {{block type="core/template
answered Dec 18 '15 by Marius

15 30 50 per page