共计 1567 个字符,预计需要花费 4 分钟才能阅读完成。
magento模板升级其实很简单,网上有很多种方法,这里就不多说了,上次把magento1.4模板升级到1.5.0.1版本,结果在订单购买结账页面的最后一步找不到”Place Order”按钮了,因此无法完成订单,找了下gg,解决方法如下:
1.打开主题下的checkout.xml文件,具体路径 /app/design/frontend/default/yourtheme/layout/checkout.xml
2.搜索”One page checkout order review block”,大概370行处,把下列代码加入到此block中:
[php]
<block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
[/php]
类似这样:
[php]
<!–
One page checkout order review block
–>
<checkout_onepage_review>
<!– Mage_Checkout –>
<remove name="right"/>
<remove name="left"/>
<block type="checkout/onepage_review_info" name="root" output="toHtml" template="checkout/onepage/review/info.phtml">
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
<block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>
</block>
</checkout_onepage_review>
[/php]
3.保存上传清除缓存就解决″Place Order”按钮消失的问题了。