开发者

Magento Description/Attributes Replace?

I'开发者_如何学Pythonm having trouble swapping Short Description (Quick Overview) with Additional Information (Attributes)

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

Magento Description/Attributes Replace?


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!


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.


Could you draw a picture that to swap attributes for the product's page how to rebuild?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜