0

我正在使用magento 1.6.2。

我需要在 magento 的付款信息下添加 google checkout 单选按钮,因为我需要它在这里工作,就像 paypal 单选按钮一样.....

默认情况下,magento 中已提供 Google checkout api,但在从后端启用后,google checkout 按钮仅显示在购物车中,而不是付款信息部分下的一页结帐(步骤 4)

我在第 59 行的 methods.phtml 文件中应用以下代码:

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

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

它显示了简单的按钮,但按钮不起作用,并且没有重定向到带有所选产品的谷歌结帐页面我认为它需要表单元素......

谁能告诉我如何在这里插入像贝宝这样的单选按钮而不是谷歌结帐按钮......

谢谢!

4

1 回答 1

1

在后端启用 googlecheckout;

找到Payment.phpinModel文件夹,将值设置$_canUseCheckouttrue

现在你会得到一台收音机,但会有很多问题,好好享受吧。

于 2012-10-09T03:32:02.627 回答