I have posted this issue on the magneto Forums but haven't herd anything in two weeks so I'm going to post here and hopefully get a little more insight

"I have been going through the forums and working out how to change the view for one product, and I found a good post on the forums that let me change the view like I want but my page seems to be created from two seperate files. One called view.phtml in app/design/frontend/base/default/template/catalog/product and another called default.phtml in the same path just down two more directories view/type/. The Code I need to modify is in default.phtml but when i do that and set it to display that it stops displaying the other half of the page or the view.phtml part.

it works but does not show default1.phtml in the size section.
All this because I need to show 2 different size charts one for males and one for females. You can see my issue by going to mysteryhousecostumes.net and navigating to a womans product and then a mans and you will see the mens products still link to the womens size chart.

How do I fix view.phtml so that it links to default1 instead of default? I realize I’ll need to make a duplicate view.phtml but I cant find the connection between the two files here is my view.phtml…

3 Answers
3

The reason it's not working is because view.phtml is kinda like the parent block for the product view page, therefore when you disable it it only shows the sizing section, and when you enable it you get the wrong sizing section.

What you need to do is within view.phtml tell it about the new sizing template.

This is done by first creating a block, then assigning it a template, and then calling it in your view.phtml file

The easiest way to do this is find out what the first sizing block is called, then look in the xml for it and copy it and change it's name to something unique and the template to you new file.

Then you go in to your view.phtml file and call the block by name to be displayed.

In your case I think it's the following lines that need to be changed:

I really appreciate your time in answering my issue and I understand what you are telling me, Not sure I understand how to implement it tho. This is my first Magento website and I found the tutorial on templates and layouts here link And I need to go though this and understand it but the customer has been waiting for this for a week or so now, how would I go about tracking down the xml file that has the sizing block?
–
CourtlandAug 16 '12 at 22:10

Sure, happy to help :) what you can do is go through your phtml file and every time you come across a 'echo $this->getChildhtml('name_of_block')' or 'echo $this->getChilChilddhtml('name_of_block')' comment it out and see which one takes out the sizing block. Once you know what then name of the block is you can check 'catalog.xml' for it. if it's not there you can search all the xml files via grep (but it should be in catalog.xml). if you have further questions don't hesitate to ask :)
–
pzirkindAug 17 '12 at 12:41

Looking for a little more guidance here pzirkind, do you see where I went wrong?
–
CourtlandAug 28 '12 at 19:30

Something that may help you find what blocks are used on what page is by enabling "debug mode". You can enable it by going to your admin panel and goto system->configuration then in the left nav switch the "Current Configuration Scope" from "Default Config" to "your-stores-name Web Store".

The page will auto refresh then towards the bottom of the left nav in the ADVANCED section click Developer then in the Debug section of the accordion you will see "Template Path Hints" and "Add Block Names to Hints" switch each of these select fields to "yes" then click the Save Config button at the top right of the page.

Once debug mode is active you will all your blocks will be outlined in red and labeled with template locations and block name references. Hope this helps in the future.

When I comment it out I get the results i expect and my sizing charts disappear
In Catalog.xml I have found what I think the code is (theres a few catalog.xml files is there a way to be sure i have the right one?)

The catalog.xml that you need is the one in your theme's layout folder (you can find out what your theme is by going in the backend to system->configuration->design and see the 'package' and 'themes' section for the correct directory). you also might need to flush cache. also troubleshoot to see if it's hitting the phtml file by putting in a <h1> tag with some data
–
pzirkindAug 29 '12 at 14:36

GUESS who gets an ACCEPTED answer!! You DO! for the record, I hate to admit this but "flush the cache" was the issue
–
CourtlandAug 30 '12 at 0:56