@@ -239,8 +239,8 @@ Me désinscrire : ".$linkUnsubscribe; | |||
if(count($body['Messages']) > 0) { | |||
$response = $mj->post(\Mailjet\Resources::$Email, ['body' => $body]); | |||
} | |||
$success = $response->success() ; | |||
$success = (isset($response) && $response) ? $response->success() : false ; | |||
if(!$success) { | |||
Yii::error($response->getBody(), 'Mailjet'); |
@@ -13,6 +13,6 @@ | |||
<h1>Souke est en maintenance</h1> | |||
<div> | |||
<p>Le site sera bientôt accessible, merci pour votre patience.<br /> | |||
Si besoin, vous pouvez <a href="<?= Yii::$app->params['adminEmail']; ?>">me contacter</a>.</p> | |||
Si besoin, vous pouvez <a href="mailto:<?= Yii::$app->params['adminEmail']; ?>">me contacter</a>.</p> | |||
</div> | |||
</article> |
@@ -458,6 +458,7 @@ class OrderController extends ProducerBaseController | |||
$orderModule->initOrder($order); | |||
if ($credit | |||
&& $this->getUserCurrent() | |||
&& $pointSale->payment_method_credit | |||
&& $posts['payment_method'] == 'credit' | |||
&& ($creditFunctioning == Producer::CREDIT_FUNCTIONING_OPTIONAL || |
@@ -284,7 +284,7 @@ $this->setTitle('Commander'); | |||
</div> | |||
</form> | |||
</div> | |||
<div v-if="!user && producer.credit == 1 && pointSale.credit == 1"> | |||
<div v-if="!user && producer.credit == 1 && pointSale.payment_method_credit == 1"> | |||
<a :href="urlLogin" class="btn btn-secondary"> | |||
<i class="bi bi-box-arrow-in-right"></i> | |||
Connexion obligatoire | |||
@@ -503,7 +503,7 @@ $this->setTitle('Commander'); | |||
</label> | |||
</div> | |||
<div class="col-md-4" v-if="isPaymentMethodCreditActive()"> | |||
<template v-if="(pointSaleActive.credit_functioning == 'mandatory' || (pointSaleActive.credit_functioning == 'user' && user.credit_active)) && !checkCreditLimit(order) "> | |||
<template v-if="user && (pointSaleActive.credit_functioning == 'mandatory' || (pointSaleActive.credit_functioning == 'user' && user.credit_active)) && !checkCreditLimit(order) "> | |||
<div class="alert alert-danger"> | |||
<i class="bi bi-piggy-bank"></i> | |||
Vous devez |