gpt4 book ai didi

magento - 更改 Magento 中结帐按钮的显示顺序

转载 作者:行者123 更新时间:2023-12-05 01:18:26 26 4
gpt4 key购买 nike

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

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

结帐文件
里面
      <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>

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

最佳答案

我刚刚改变

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

关于magento - 更改 Magento 中结帐按钮的显示顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13032267/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com