Could you draw a picture that to swap attributes for the product's page how to rebuild?
mivec
2010-07-27 09:06:08
Could you draw a picture that to swap attributes for the product's page how to rebuild?
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.