Magento RWD Theme: How to move related products to a new tab?
-
19-10-2020 - |
سؤال
I am fairly new to developing in Magento, and currently on a local server developing a custom theme. Now, what I want is to move the related products from it's current default location, to residing in a seperate tab. From research I believe that a local.xml is required, and have made one. What code do I need to place within here ?
This image depicts it's current location and I want it to be residing within a new tab say next the reviews tab.
المحلول
Just add below layout code at catalog.xml or local.xml at your app/design/frontend/rwd/default/layout
:
<catalog_product_view>
<reference name="product.info">
<block type="catalog/product_list_related" name="catalog.product.related.new" as="related_products_new" template="catalog/product/list/related.phtml" after="additional">
<action method="addToParentGroup"><group>detailed_info</group></action>
<action method="setTitle" translate="value"><value>Related Products</value></action>
</block>
</reference>
</catalog_product_view>
لا تنتمي إلى magento.stackexchange