简体   繁体   English

magento付款信息下的google checkout单选按钮

[英]google checkout radio button under Payment Information in magento

i'm using magento 1.6.2. 我正在使用magento 1.6.2。

i need to add google checkout radio button under Payment Information in magento because i need that to be working here exactly like paypal radio button..... 我需要在magento的“付款信息”下添加google checkout单选按钮,因为我需要像paypal单选按钮一样在这里正常工作。

Google checkout api already available in magento by default but after enable it from backend google checkout button only shows in cart instead of one page checkout under Payment information portion (step 4) 默认情况下,默认情况下magento中已提供Google Checkout API,但从后端启用它后,Google Checkout按钮仅显示在购物车中,而不显示在付款信息部分下的一页结帐(步骤4)

i apply the following code in methods.phtml file at line 59: 我在第59行的methods.phtml文件中应用以下代码:

<?php echo $this->getLayout()->createBlock('googlecheckout/link')->setTemplate('googlecheckout/link.phtml')->toHtml(); ?>

Path: \\app\\design\\frontend\\base\\default\\template\\checkout\\onepage\\payment\\methods.pthml 路径:\\ app \\ design \\ frontend \\ base \\ default \\ template \\ checkout \\ onepage \\ payment \\ methods.pthml

it shows simple button but button not working and not redirecting to google checkout page with selected products i think it need forms elements...... 它显示了简单的按钮,但是按钮不起作用,并且无法重定向到包含我选择的产品的Google Checkout页面,我认为它需要表单元素......

Can anyone tell me how to insert radio button like paypal here instead of button for google checkout...... 谁能告诉我如何在此处插入单笔按钮(例如贝宝)而不是Google Checkout的按钮……

thanks! 谢谢!

Enable googlecheckout in backend; 在后端启用googlecheckout;

Find the Payment.php in Model folder, set the value of $_canUseCheckout to true ; Model文件夹中找到Payment.php ,将$_canUseCheckout的值设置为true

Now you'll get a radio, but there will be many problems, enjoy it. 现在,您将获得一台收音机,但是会有很多问题,请尽情享受。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM