Add a message on payment forms
This commit is contained in:
parent
66cba0ad61
commit
591834a807
@ -19,6 +19,9 @@ TextNextMonthOfInvoice=Following month (text) of invoice date
|
|||||||
ZipFileGeneratedInto=Zip file generated into <b>%s</b>.
|
ZipFileGeneratedInto=Zip file generated into <b>%s</b>.
|
||||||
DocFileGeneratedInto=Doc file generated into <b>%s</b>.
|
DocFileGeneratedInto=Doc file generated into <b>%s</b>.
|
||||||
JumpToLogin=Disconnected. Go to login page...
|
JumpToLogin=Disconnected. Go to login page...
|
||||||
|
MessageForm=Message on online payment form
|
||||||
|
MessageOK=Message on validated payment return page
|
||||||
|
MessageKO=Message on canceled payment return page
|
||||||
|
|
||||||
YearOfInvoice=Year of invoice date
|
YearOfInvoice=Year of invoice date
|
||||||
PreviousYearOfInvoice=Previous year of invoice date
|
PreviousYearOfInvoice=Previous year of invoice date
|
||||||
|
|||||||
@ -30,8 +30,6 @@ InformationToFindParameters=Help to find your %s account information
|
|||||||
PAYBOX_CGI_URL_V2=Url of Paybox CGI module for payment
|
PAYBOX_CGI_URL_V2=Url of Paybox CGI module for payment
|
||||||
VendorName=Name of vendor
|
VendorName=Name of vendor
|
||||||
CSSUrlForPaymentForm=CSS style sheet url for payment form
|
CSSUrlForPaymentForm=CSS style sheet url for payment form
|
||||||
MessageOK=Message on validated payment return page
|
|
||||||
MessageKO=Message on canceled payment return page
|
|
||||||
NewPayboxPaymentReceived=New Paybox payment received
|
NewPayboxPaymentReceived=New Paybox payment received
|
||||||
NewPayboxPaymentFailed=New Paybox payment tried but failed
|
NewPayboxPaymentFailed=New Paybox payment tried but failed
|
||||||
PAYBOX_PAYONLINE_SENDEMAIL=EMail to warn after a payment (success or failed)
|
PAYBOX_PAYONLINE_SENDEMAIL=EMail to warn after a payment (success or failed)
|
||||||
|
|||||||
@ -31,8 +31,6 @@ InformationToFindParameters=Help to find your %s account information
|
|||||||
STRIPE_CGI_URL_V2=Url of Stripe CGI module for payment
|
STRIPE_CGI_URL_V2=Url of Stripe CGI module for payment
|
||||||
VendorName=Name of vendor
|
VendorName=Name of vendor
|
||||||
CSSUrlForPaymentForm=CSS style sheet url for payment form
|
CSSUrlForPaymentForm=CSS style sheet url for payment form
|
||||||
MessageOK=Message on validated payment return page
|
|
||||||
MessageKO=Message on canceled payment return page
|
|
||||||
NewStripePaymentReceived=New Stripe payment received
|
NewStripePaymentReceived=New Stripe payment received
|
||||||
NewStripePaymentFailed=New Stripe payment tried but failed
|
NewStripePaymentFailed=New Stripe payment tried but failed
|
||||||
STRIPE_TEST_SECRET_KEY=Secret test key
|
STRIPE_TEST_SECRET_KEY=Secret test key
|
||||||
|
|||||||
@ -57,9 +57,11 @@ if ($action == 'setvalue' && $user->admin)
|
|||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_CSS_URL",GETPOST('ONLINE_PAYMENT_CSS_URL','alpha'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_CSS_URL",GETPOST('ONLINE_PAYMENT_CSS_URL','alpha'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_OK",GETPOST('ONLINE_PAYMENT_OK','alpha'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_FORM",GETPOST('ONLINE_PAYMENT_MESSAGE_FORM','alpha'),'chaine',0,'',$conf->entity);
|
||||||
|
if (! $result > 0) $error++;
|
||||||
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_OK",GETPOST('ONLINE_PAYMENT_MESSAGE_OK','alpha'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_KO",GETPOST('ONLINE_PAYMENT_KO','alpha'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_KO",GETPOST('ONLINE_PAYMENT_MESSAGE_KO','alpha'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_SENDEMAIL",GETPOST('ONLINE_PAYMENT_SENDEMAIL'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_SENDEMAIL",GETPOST('ONLINE_PAYMENT_SENDEMAIL'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
@ -182,6 +184,12 @@ print '<br>'.$langs->trans("Example").': http://mysite/mycss.css';
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|
||||||
|
print '<tr class="oddeven"><td>';
|
||||||
|
print $langs->trans("MessageForm").'</td><td>';
|
||||||
|
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_FORM',$conf->global->ONLINE_PAYMENT_MESSAGE_FORM,'',100,'dolibarr_details','In',false,true,true,ROWS_2,'90%');
|
||||||
|
$doleditor->Create();
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("MessageOK").'</td><td>';
|
print $langs->trans("MessageOK").'</td><td>';
|
||||||
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_OK',$conf->global->ONLINE_PAYMENT_MESSAGE_OK,'',100,'dolibarr_details','In',false,true,true,ROWS_2,'90%');
|
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_OK',$conf->global->ONLINE_PAYMENT_MESSAGE_OK,'',100,'dolibarr_details','In',false,true,true,ROWS_2,'90%');
|
||||||
|
|||||||
@ -64,6 +64,8 @@ if ($action == 'setvalue' && $user->admin)
|
|||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "PAYPAL_ADD_PAYMENT_URL",GETPOST('PAYPAL_ADD_PAYMENT_URL','alpha'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "PAYPAL_ADD_PAYMENT_URL",GETPOST('PAYPAL_ADD_PAYMENT_URL','alpha'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_FORM",GETPOST('ONLINE_PAYMENT_MESSAGE_FORM'),'chaine',0,'',$conf->entity);
|
||||||
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_OK",GETPOST('ONLINE_PAYMENT_MESSAGE_OK'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_OK",GETPOST('ONLINE_PAYMENT_MESSAGE_OK'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_KO",GETPOST('ONLINE_PAYMENT_MESSAGE_KO'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_KO",GETPOST('ONLINE_PAYMENT_MESSAGE_KO'),'chaine',0,'',$conf->entity);
|
||||||
@ -220,6 +222,13 @@ print $form->selectyesno("PAYPAL_ADD_PAYMENT_URL",$conf->global->PAYPAL_ADD_PAYM
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|
||||||
|
print '<tr class="oddeven"><td>';
|
||||||
|
print $langs->trans("MessageForm").'</td><td>';
|
||||||
|
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_FORM',$conf->global->ONLINE_PAYMENT_MESSAGE_FORM,'',100,'dolibarr_details','In',false,true,true,ROWS_4,'90%');
|
||||||
|
$doleditor->Create();
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("MessageOK").'</td><td>';
|
print $langs->trans("MessageOK").'</td><td>';
|
||||||
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_OK',$conf->global->ONLINE_PAYMENT_MESSAGE_OK,'',100,'dolibarr_details','In',false,true,true,ROWS_4,'90%');
|
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_OK',$conf->global->ONLINE_PAYMENT_MESSAGE_OK,'',100,'dolibarr_details','In',false,true,true,ROWS_4,'90%');
|
||||||
|
|||||||
@ -59,8 +59,10 @@ if ($action == 'setvalue' && $user->admin)
|
|||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_CSS_URL",GETPOST('ONLINE_PAYMENT_CSS_URL','alpha'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_CSS_URL",GETPOST('ONLINE_PAYMENT_CSS_URL','alpha'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_FORM",GETPOST('ONLINE_PAYMENT_MESSAGE_FORM','alpha'),'chaine',0,'',$conf->entity);
|
||||||
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_OK",GETPOST('ONLINE_PAYMENT_MESSAGE_OK','alpha'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_OK",GETPOST('ONLINE_PAYMENT_MESSAGE_OK','alpha'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_KO",GETPOST('ONLINE_PAYMENT_MESSAGE_KO','alpha'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_MESSAGE_KO",GETPOST('ONLINE_PAYMENT_MESSAGE_KO','alpha'),'chaine',0,'',$conf->entity);
|
||||||
if (! $result > 0) $error++;
|
if (! $result > 0) $error++;
|
||||||
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_SENDEMAIL",GETPOST('ONLINE_PAYMENT_SENDEMAIL'),'chaine',0,'',$conf->entity);
|
$result=dolibarr_set_const($db, "ONLINE_PAYMENT_SENDEMAIL",GETPOST('ONLINE_PAYMENT_SENDEMAIL'),'chaine',0,'',$conf->entity);
|
||||||
@ -194,6 +196,12 @@ print '<input size="64" type="text" name="ONLINE_PAYMENT_CSS_URL" value="'.$conf
|
|||||||
print ' '.$langs->trans("Example").': http://mysite/mycss.css';
|
print ' '.$langs->trans("Example").': http://mysite/mycss.css';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
print '<tr class="oddeven"><td>';
|
||||||
|
print $langs->trans("MessageForm").'</td><td>';
|
||||||
|
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_FORM',$conf->global->ONLINE_PAYMENT_MESSAGE_FORM,'',100,'dolibarr_details','In',false,true,true,ROWS_2,'90%');
|
||||||
|
$doleditor->Create();
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("MessageOK").'</td><td>';
|
print $langs->trans("MessageOK").'</td><td>';
|
||||||
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_OK',$conf->global->ONLINE_PAYMENT_MESSAGE_OK,'',100,'dolibarr_details','In',false,true,true,ROWS_2,'90%');
|
$doleditor=new DolEditor('ONLINE_PAYMENT_MESSAGE_OK',$conf->global->ONLINE_PAYMENT_MESSAGE_OK,'',100,'dolibarr_details','In',false,true,true,ROWS_2,'90%');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user