diff --git a/htdocs/adherents/admin/website.php b/htdocs/adherents/admin/website.php
index 1c45e25c404..4c8996ea70a 100644
--- a/htdocs/adherents/admin/website.php
+++ b/htdocs/adherents/admin/website.php
@@ -32,6 +32,7 @@ require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/member.lib.php';
+require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php';
/**
@@ -49,6 +50,10 @@ $langs->loadLangs(array("admin", "members"));
$action = GETPOST('action', 'aZ09');
+// Hook to be used by external payment modules (ie Payzen, ...)
+$hookmanager = new HookManager($db);
+$hookmanager->initHooks(array('newpayment'));
+
if (!$user->admin) {
accessforbidden();
}
@@ -143,23 +148,18 @@ if ($conf->use_javascript_ajax) {
print 'jQuery(document).ready(function () {
function initemail()
{
- if (jQuery("#MEMBER_NEWFORM_PAYONLINE").val()==\'-1\')
- {
+ if (jQuery("#MEMBER_NEWFORM_PAYONLINE").val()==\'-1\') {
jQuery("#tremail").hide();
- }
- else
- {
+ } else {
jQuery("#tremail").show();
}
}
function initfields()
{
- if (jQuery("#MEMBER_ENABLE_PUBLIC").val()==\'0\')
- {
+ if (jQuery("#MEMBER_ENABLE_PUBLIC").val()==\'0\') {
jQuery("#trforcetype, #tramount, #tredit, #trpayment, #tremail").hide();
}
- if (jQuery("#MEMBER_ENABLE_PUBLIC").val()==\'1\')
- {
+ if (jQuery("#MEMBER_ENABLE_PUBLIC").val()==\'1\') {
jQuery("#trforcetype, #tramount, #tredit, #trpayment").show();
if (jQuery("#MEMBER_NEWFORM_PAYONLINE").val()==\'-1\') jQuery("#tremail").hide();
else jQuery("#tremail").show();
@@ -197,7 +197,6 @@ print '
';
if (getDolGlobalString('MEMBER_ENABLE_PUBLIC')) {
print '
';
- //print $langs->trans('FollowingLinksArePublic').'
';
print img_picto('', 'globe').' '.$langs->trans('BlankSubscriptionForm').'
';
if (isModEnabled('multicompany')) {
$entity_qr = '?entity='.((int) $conf->entity);
@@ -289,18 +288,23 @@ if (getDolGlobalString('MEMBER_ENABLE_PUBLIC')) {
print '