How to edit product page template in Magento - magento

I want to customize the product page template file on my Magento site. I couldn't find a way to customize my product page template. Anybody please specify the exact file and the location of that file. I am using Magento version 1.7.0.2

You can find all the templates related to product view in the following directory.
Magento/app/design/frontend/default/your_theme/template/catalog/product/
You can customize more (if you want to know which template is for that particular block) with template path hints
http://www.pauldonnelly.net/magento-turning-on-template-path-hints/
UPDATE:
Copying content from the above link, in case the link may no longer exist.
What is Template Path hints
Template Path Hints are little tags which would lie on top of your shop frontend. These little tags enable you to view where exactly the code of a specific element is stored within your file structure. Bottom line Template Path Hints saves you alot of frustration.
How to turn on Template Path Hints?
Open the admin control panel
Open the system tab and select configuration
Select Main Website or Name of your website (NOT DEFAULT CONFIG) from the Current Configuration Scope drop down
Select Developer on the left sidebar
Open the Debug drop down
Set Template Path Hints To Yes
Click on Save Config to save down your changes

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.

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.

Magento, category, details button

I'm trying to teach myself Magento, and basic programming.
In the product lists I have, beside the "add to cart" button is a "Details" button. It has a typo in the label, and says "Detalis".
I need to fix this, but I can't find where/which file it is in. Can anyone point me in the right direction?
Generally,product list layout came from list.phtml file.
file location:app/design/frontend/default/my_theme/template/catalog/product/list.phtml
(or)
Please enable the path hints via admin panel.It's show all block paths.
How do I turn on template path hints?
To turn on template path hints in Magento:
log into the magento back-end admin
Go to System -> Configuration in the main menu
Go to Developer on the bottom left under ADVANCED
Switch to the store view on the top left to your current website or
store view.
Under the Debug tab of the same Developer config page you will see a
new option appear that will allow you to turn on/off template path
hints.
Remember to clear your cache.
Generally, I believe that the templates associated with products would be located in the
app/design/frontend/default/your_theme/template/catalog/product/
However, I am unsure of your site template files etc, especially if you are doing things yourself.
To make your life easier, I would suggest installing a program called Agent Ransack which I have found to be invaluable when searching for a needle in a haystack.

i need to move my nav-container above layered navigation

in magento i need to move nav-container above layered navigation, I can't seem to locate where to change is. I want the category breakdown to be above the filtering options.
Thank you in advance!
You can use Magento's Template Path Hints to check the name of template file of every block/section in your frontend. With this knowledge you will be able to edit proper template files. The feature is here:
System -> Configuration -> Developer -> Debug
(you need to switch to Website scope in Current Configuration Scope field).

Changing Layout of Product Options in Magento

I'm currently customizing the bluescale theme for Magento. I have moved the position of the "product options" box for configurable products from lower on the page to just under the title.
I am now trying to remove the 3 links below the add to cart button (add to wishlist, compare, and ask a question), but cannot figure out where to do so. Where can I find the template for the actual "product options" box? You can see the webpage here: http://bit.ly/xgFy2a
P.S. I can't simply delete the template file for the links, as they still appear elsewhere.
Thanks,
Brett
You can debug your template locations by enabling Template Path Hints like this:
Open the admin control panel
Open the system tab and select configuration
Select Developer on the left sidebar
Select Main Website From the Current Configuration Scope Drop Down (upper left)
Open the debug dropdown
Set Template Path Hints To Yes

Resources