Ver código fonte

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

prodstable
Guillaume Bourgeois 1 ano atrás
pai
commit
6be84dcd4b
2 arquivos alterados com 7 adições e 1 exclusões
  1. +4
    -0
      common/models/Product.php
  2. +3
    -1
      producer/views/order/order.php

+ 4
- 0
common/models/Product.php Ver arquivo

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

@@ -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>' ;
}

Carregando…
Cancelar
Salvar