소스 검색

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

feature/rotating_product
Guillaume Bourgeois 6 달 전
부모
커밋
40f117b865
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -0
      producer/controllers/OrderController.php
  2. +2
    -2
      producer/views/order/order.php

+ 1
- 0
producer/controllers/OrderController.php 파일 보기

@@ -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 파일 보기

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

Loading…
취소
저장