2017-05-08 35 views
0

我有一个插件与Prestashop 1.6工作正常,但自从Prestashop在最新版本1.7中做出重大更改插件停止工作。付款插件不显示在Prestashop

我按照他们提供的,但仍然插件不工作的链接:
http://build.prestashop.com/news/starter-theme-news-3/

该插件在我已经安装了它后端的工作完美,但问题没有显示在结账了过程中,我已启用开发模式看看是否有任何错误,但没有,我也检查了错误日志没有什么。

下面是代码:

Payroll.php和payment.tpl:

+0

对不起,我忘了附上代码链接:https://pastebin.com/79eSEa3t – Petr

+0

任何人都可以帮助这里请。 – Petr

回答

1

在安装您注册支付模块:

$this->registerHook('payment') 

相反paymentoptions的:

$this->registerHook('paymentOptions') 

用于ps_wirepayment模块。

+0

我在error_log文件中得到这个错误: https://pastebin.com/tRBaZ08e – Petr

+0

尝试在if之前添加'PrestaShop \ PrestaShop \ Core \ Payment \ PaymentOption;'if(!defined('_ PS_VERSION _'))'像官方模块一样 – sadlyblue