更改Magento中结帐按钮的显示顺序 [英] Change display order of checkout buttons in Magento

查看:60
本文介绍了更改Magento中结帐按钮的显示顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要按顺序在购物车页面中放置结帐按钮

I need to place checkout buttons in shopping cart page in order

1) Proceed to checkout 
2) Google checkout 
3) Paypal Express

checkout.xml 内

checkout.xml inside

      <checkout_cart_index>
          <block type="core/text_list" name="checkout.cart.methods" as="methods" translate="label">
                <label>Payment Methods After Checkout Button</label>
                <block type="checkout/onepage_link" name="checkout.cart.methods.onepage"  as="testproceed" after="-" template="checkout/onepage/link.phtml"/>
                <block type="checkout/multishipping_link" name="checkout.cart.methods.multishipping" template="checkout/multishipping/link.phtml"/>
            </block>

googlecheckout.xml

googlecheckout.xml

     <reference name="checkout.cart.methods">
        <block type="googlecheckout/link" name="checkout.cart.methods.googlecheckout.bottom" after="testproceed" as="testgoogle" template="googlecheckout/link.phtml"/>
    </reference>

paypal.xml

paypal.xml

    <reference name="checkout.cart.methods">
        <block type="paypal/express_shortcut" name="checkout.cart.methods.paypal_express.bottom" as="testpaypal"  after="testgoogle"  template="paypal/express/shortcut.phtml">
            <action method="setIsQuoteAllowed"><value>1</value></action>
             <action method="setIsInCatalogProduct"><value>1</value></action>
                <action method="setShowOrPosition"><value>before</value></action>
        </block>
    </reference>

但顺序不正确. 请帮忙.

But not getting in correct order. Please help..

推荐答案

我刚刚更改

      <block type="paypal/express_shortcut" after="checkout.cart.methods.googlecheckout.bottom"  name="checkout.cart.methods.paypal_express.bottom"  template="paypal/express/shortcut.phtml">

这篇关于更改Magento中结帐按钮的显示顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆