Przeglądaj źródła

[Espace producteur] Points de vente fantômes #924

prodstable
Guillaume Bourgeois 1 rok temu
rodzic
commit
6be84dcd4b
2 zmienionych plików z 7 dodań i 1 usunięć
  1. +4
    -0
      common/models/Product.php
  2. +3
    -1
      producer/views/order/order.php

+ 4
- 0
common/models/Product.php Wyświetl plik

@@ -242,6 +242,10 @@ class Product extends ActiveRecordCommon

public function isAvailableOnPointSale($pointSale)
{
if(!$pointSale) {
return false;
}

// disponible par défaut
if ($this->available_on_points_sale) {
foreach ($this->productPointSale as $productPointSale) {

+ 3
- 1
producer/views/order/order.php Wyświetl plik

@@ -184,11 +184,13 @@ $producer = $this->context->getProducer();
if($pointSaleDistributions && count($pointSaleDistributions) > 0) {
echo '<div class="point-sales">' ;
foreach($pointSaleDistributions as $pointSaleDistribution) {
//if($pointSaleDistribution->pointSale->status == 1) {
echo $pointSaleDistribution->pointSale->name.'' ;
if(strlen($pointSaleDistribution->pointSale->locality)) {
echo ' ('.$pointSaleDistribution->pointSale->locality.')' ;
echo ' ('.$pointSaleDistribution->pointSale->locality.')' ;
}
echo '<br />' ;
//}
}
echo '</div>' ;
}

Ładowanie…
Anuluj
Zapisz