get content of $this->getChildHtml('left') - magento

I have installed sns nova theme for my site.
I need to know from where $this->getChildHtml('left') getting data. Inside same there is promotion slider. I need to reposition it to the bottom. Can anybody help me out to solve it?

you need to look on local.xml of your theme if it is correcly packaged, on the layout folder. Else search for left on the same folder to see where is the xml declaration. Once you found, you can check which blocks are called and the according template. I believe that your left child consist of many templates but I cannot be sure as I do not know the theme.

Related

Magento layered navigation position

i bought one theme and i want to fix my layared navigation to work well.
I need help from which file i have to edit to fix my layered navigation to show after my menu.
First you should find correct template file,then override the template within your theme, then finally rearrange the code so that it displays beneath the vertical navigation. The following may (possibly) work for you. But I don't know what type of theme you are using.
go to your magento backend url, then go to system->configuration->developer then open the debug panel.
Change the current configuration scope to 'Main Website'. Upper left corner of config page.
This should add some items to the debug panel. Set template path hints to 'yes'.
go back to the website and find the phtml file that controls your nav.
copy the file into the theme your using using the same folder structure.
edit that code.
PS another solution may be available to alter the layout files of your site. they get overridden in a similar fashion to phtml files.

Editing Magento custom theme template files vs layout

I’m fairly new to Magento themes and have been looking around for best practices for building them. I have an understanding of creating a skeleton structure for my theme and copying template files from the base theme. What I’m not sure of is, if for example I wanted to customise the product view, is it best practice to remove blocks from the view.phtml file or should I remove them in the layout file? I want a fairly simple product page with wishlist, compare, tags etc removed.
Many thanks in advance for your advice.
You need to remove from both from xml you will find handle catalog_product_view you need to remove code as well as you need to remove from view.phtml file in folder of your new theme. At the end your code will be cleared and will take less time to execute.

Magento, how to change home page?

I see that you can set a cms home page at "Default Pages" at admin panel (system/configuration/web) but I want a whole template including [html][head][body] tags to be shown, is this possible?
I can't do it via (CMS/Pages) as it deletes/modifies the code.. Even when I set it on "empty" don't really understand it..
Help would be much appreciated, cheers!
The file that you want is the layout file. If you need to add new layout of your home page then you can make a new layout file using following link
http://rakeshwebdev.wordpress.com/2014/02/13/add-new-custom-page-layout-in-magento-1-7/
Then after making layout while creating CMS Page go to layout section and choose your created layout. Then your home page will have what you want.
Note: By default header, footer all these are kept in different file and called from the 1column.phtml etc. So it will be always better to keep it that way only. As we always should follow Magento programming methodology.

No horizontal navigation showing on Magento custom theme

I have decided to sit down and build my first custom theme in Magento and I'm using this tutorial: http://net.tutsplus.com/tutorials/php/magento-for-designers-part-4/
However I cant for the life of me find a way to include horizontal navigation (Home | Shop | Contact etc.) along the top of my website!
I tried all the suggestions I could find including placing everything in the root category and enabling all cats in the navigation.. refreshing the cache etc.
I've been working at this for hours now and been searching everywhere for an answer. I've pretty much followed the tutorial step by step but I can't see any way to enable the Nav - can someone please point me in the right direction with this?
(I'm kind of assuming Magento have a way to do this to add categories automatically - I'm aware I could hard code the navigation bar but I'm trying to avoid this.)
Looking at the screenshot on the tutorial, it doesn't actually have the menu anyway.
I'd recommend you check out leveluptuts magento theming tutorials, who actually take the base theme and manipulates it into the desired theme. I think you'll have much more luck that way as most of the templates and layout files are already built.
http://leveluptuts.com/tutorials/magento-community-tutorials/25-theming-magento-1-intro-theming
For the top menu, the default theme pages call the "header.phtml" template for the header block (app/design/frontend/base/default/template/page/html/header.phtml), which in turns calls the "topmenu.phtml" template (app/design/frontend/base/default/template/page/html/topmenu.phtml) where the menu code is.
The layout files is page.xml
Hope this helps!

Showing Custom Options on Magento Product Page

I am having a problem displaying custom options on the product page in Magento. I'm using Modern as the base for my theme, and changing themes doesn't seem to have any effect. The catalog.xml is almost the stock one for the theme.
When viewing the page, I get the message "Please specify the product's required option(s)." but nothing shows up. Additional information that have been added to the attributes show, but no product specific custom options.
Looking with developer hints, I see that /catalog/product/view/options/wrapper.phtml is not appearing on the file. Could something be missing in one of the layout .xml files?
Any idea what might be going on? Thanks!
If you have tried enabling the default template and it still doesn't work, try creating a new product with some options and see if that works. If that still doesn't work, enable the logs and pop them open and see if there are any errors being recorded during rendering. Also, make sure that they aren't just being hidden using CSS or JavaScript (try turning off the latter, for the former use Firebug to inspect the page)
The problem I had was related to this: http://sourceforge.net/projects/magmi/forums/forum/1228365/topic/4978977
The difference is that the attribute was set to container2 in my case when I need it set to container1.
Hope this helps someone else with this issue.
Compare your layout files to the default Magento layout files.

Resources