Ver código fonte

[Boutique] Correctif cagnotte obligatoire avec commande en tant que visiteur

feature/rotating_product
Guillaume Bourgeois 6 meses atrás
pai
commit
40f117b865
2 arquivos alterados com 3 adições e 2 exclusões
  1. +1
    -0
      producer/controllers/OrderController.php
  2. +2
    -2
      producer/views/order/order.php

+ 1
- 0
producer/controllers/OrderController.php Ver arquivo

@@ -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 ||

+ 2
- 2
producer/views/order/order.php Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar