Search Results
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 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
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 |
Marks questions related to the design section which holds theming and templates.
2
votes
not working one form two buttons to submit
This is not the way to submit a form.
From what I see you want a way to submit a form to one page or an other, depending on the button that is clicked.
The form is not submitted if you, when you cl …
1
vote
Accepted
add custom sidebar via module magento
You also need to declare your blocks in the config.xml file
Under the <global> tag add this:
<blocks>
<design>
<class>Abc_Design_Block</class>
</design>
</blocks>
Then you should be able to … use the block like this:
<block type="design/block_name_here"....>
So if your block class is Abc_Design_Block_Something you can use it as
<block type="design/something"....> …
2
votes
Accepted
Custom Design Area
You can add the files to app/design/offsite without any issues. …
1
vote
Add graphics design to Magento site's background
Add this to one of your css file:
body {
background: url(http://www.toysrus.com/graphics/media/trus/livecode/RD_2013/TRU/TRU_HP_Gutter_NEW/bg_gutter.jpg) top center #FFFFFF no-repeat scroll !impo …
2
votes
Configuring Design "Exception" Strings for "Mobile" Devices
it covers most cases:
iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini|Fennec
Sources:
http://magebase.com/magento-tutorials/magento-design-exceptions-explained …
0
votes
Accepted
Should i keep the default Magento CSS classes when creating a new template?
In the very few themes I implemented I chose to start from the default theme (or blank theme) and just add my own classes and markup where I thought it was needed because the design required it. …
2
votes
Accepted
Widget "Design Package/Theme" field - How to update?
Honestly I wondered myself why the theme restriction is there.
I assume that in order to show some widget options all the layout handles of the theme need to be loaded and if you later want to change …
1
vote
Display Product Options change layout of "In Block after info column"
The template used for the custom options is catalog/product/view/options.phtml
You can clone that template into your theme and change the last lines byt adding some markup around them.
So
<?php for …
0
votes
Get the short description for homepage below the products?
Make sure the attribute description is marked as 'Used in product listing' Yes and the indexes are rebuilt. Then you can just use $_product->getDescription() anywhere in the foreach loop.
19
votes
Send data from the controller to phtml
Your phtml must be rendered by a block. The block must have a name in the layout.
You can do this after calling $this->loadLayout();
$block = Mage::app()->getLayout()->getBlock('block_name_here')
if …
4
votes
Is there any way to set different theme depends on customer group?
This is more of an addition to Tim's answer. You can create config sections for each customer group and set the values for the themes in there. This way you don't have to hard code the customer group …
24
votes
Accepted
Why is disabled status 2 instead of 0?
First of all the values shouldn't even be important.
Use in your code these constants Mage_Catalog_Model_Product_Status::STATUS_ENABLED and Mage_Catalog_Model_Product_Status::STATUS_DISABLED.
The reas …
3
votes
Accepted
Custom category designs won't apply without category url slug?
The product page is rendered from Mage_Catalog_Helper_Product_View::prepareAndRender(). This method takes into account the current category by calling Mage_Catalog_Helper_Product_View::initProduct() i …
2
votes
Get default theme name
Try with
Mage::getStoreConfig('design/theme/template');
Mage::getStoreConfig('design/theme/layout');
Mage::getStoreConfig('design/theme/skin');
Mage::getStoreConfig('design/theme/locale');
Mage::getStoreConfig … ('design/theme/default'); …
1
vote
Accepted
Choose between 2 designs on product page
Then you can select one or the other theme in the "Design" tab when adding/editing a product. You should see in that tab a dropdown called "Custom design". …