douyun8674 2014-07-21 12:28
浏览 16
已采纳

放置magento块

I want to place the product description inside the product image box just under the gallary images.Here is the part of code of my themes catalog.xml.I am placing the block

under

<block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>

but its not working.Only the description shows while being placed at the very begining under

  <reference name="content">

Its not working under any other blocks.I think its clear.

<reference name="content">
        <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
            <!--
            <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/summary.phtml</template></action>
            <action method="addReviewSummaryTemplate"><type>short</type><template>review/helper/summary_short.phtml</template></action>
            <action method="addReviewSummaryTemplate"><type>...</type><template>...</template></action>
            -->
            <block type="catalog/product_view_media" name="product.info.media" as="media"
                   template="catalog/product/view/media.phtml"/>

            <block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
                <label>Alert Urls</label>
            </block>

            <action method="setTierPriceTemplate">
                <template>catalog/product/view/tierprices.phtml</template>
            </action>

            <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>additional</alias>
                    <title>Additional Information</title>
                    <block>catalog/product_view_attributes</block>
                    <template>catalog/product/view/attributes.phtml</template>
                </action>
                <action method="addTab" translate="title" module="review">
                    <alias>product_review</alias>
                    <title>Reviews</title>
                    <block>review/product_view_list</block>
                    <template>review/product/view/list.phtml</template>
                </action>
                <block type="cms/block" name="product_custom_tab">
                    <action method="setBlockId">
                        <block_id>product_custom_tab</block_id>
                    </action>
                </block>
            </block>
  • 写回答

1条回答 默认 最新

  • doupuxuan5784 2014-07-21 12:31
    关注

    These block are used to define WHAT content have to displayed if you want to change the placement(WHERE) You need to change it in the .phtml files.
    In

    app/design/frontend/[theme_packahe]/[theme]/template/catalog/product
    

    find view.phtml and make the modifications(just cut paste) as per your requirements....

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算