4

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

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

checkout.xml 里面

      <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

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

贝宝.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>

但没有得到正确的顺序。请帮忙..

4

1 回答 1

5

我刚换

      <block type="paypal/express_shortcut" after="checkout.cart.methods.googlecheckout.bottom"  name="checkout.cart.methods.paypal_express.bottom"  template="paypal/express/shortcut.phtml">
于 2012-10-25T05:55:21.670 回答