Answer a question

I'm having trouble swapping Short Description (Quick Overview) with Additional Information (Attributes)

Here's an image better explaining what I'm trying to accomplish:

alt text


I posted links to CodePaste.net

Here is my View.PHTML

Here is my Attributes.PHTML

Here is my Tabs.PHTML

Here is my Catalog.XML

I know most files posted are not involved, but I figured it might help. Any help or questions are greatly appreciated. Thanks!

Answers

In catalog.xml you have

<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs" template="catalog/product/view/tabs.phtml" >
    <action method="addTab" translate="title" module="catalog"><alias>description</alias><title>Product Description</title><block>catalog/product_view_description</block><template>catalog/product/view/description.phtml</template></action>
    <action method="addTab" translate="title" module="catalog"><alias>upsell_products</alias><title>We Also Recommend</title><block>catalog/product_list_upsell</block><template>catalog/product/list/upsell.phtml</template></action>
    <action method="addTab" translate="title" module="catalog"><alias>additional</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action>
</block>

Remove the last "addTab" line to remove the "Additional information" tab.

Add

<block type="catalog/product_view_attributes" name="product.info.additional" as="additional_info" template="catalog/product/view/attributes.phtml" />

just below

<block type="catalog/product_view" name="product.tierprices" as="tierprices" template="catalog/product/view/tierprices.phtml"/>

(which is located a few lines up). Now, in View.phtml you insert

<?php echo $this->getChildHtml('additional_info'); ?>

and you reverse the procedure to move Quick Overview.

NB. You might need to adjust the template files.

Logo

更多推荐