Change display order of checkout buttons in Magento

天大地大妈咪最大 提交于 2019-12-07 07:33:41

问题


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

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

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

     <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

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


回答1:


I have just change

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


来源:https://stackoverflow.com/questions/13032267/change-display-order-of-checkout-buttons-in-magento

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!