NEW Suggest link to pay online for customer orders
This commit is contained in:
parent
c34bfc229b
commit
7511ba52ae
@ -2613,9 +2613,8 @@ if ($action == 'create' && $user->rights->commande->creer)
|
|||||||
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
|
$somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
|
||||||
|
|
||||||
// Show online payment link
|
// Show online payment link
|
||||||
//$useonlinepayment = (! empty($conf->paypal->enabled) || ! empty($conf->stripe->enabled) || ! empty($conf->paybox->enabled));
|
$useonlinepayment = (! empty($conf->paypal->enabled) || ! empty($conf->stripe->enabled) || ! empty($conf->paybox->enabled));
|
||||||
$useonlinepayment = $conf->global->ORDER_SHOW_ONLINE_PAYMENT_ON_ORDER;
|
if (! empty($conf->global->ORDER_HIDE_ONLINE_PAYMENT_ON_ORDER)) $useonlinepayment = 0;
|
||||||
|
|
||||||
if ($object->statut != Commande::STATUS_DRAFT && $useonlinepayment)
|
if ($object->statut != Commande::STATUS_DRAFT && $useonlinepayment)
|
||||||
{
|
{
|
||||||
print '<br><!-- Link to pay -->';
|
print '<br><!-- Link to pay -->';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user