Sfoglia il codice sorgente

Merge branch 'develop'

prodstable
Guillaume Bourgeois 1 anno fa
parent
commit
ec846fbf75
2 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. +4
    -0
      common/models/Product.php
  2. +3
    -1
      producer/views/order/order.php

+ 4
- 0
common/models/Product.php Vedi File



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

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

+ 3
- 1
producer/views/order/order.php Vedi File

if($pointSaleDistributions && count($pointSaleDistributions) > 0) { if($pointSaleDistributions && count($pointSaleDistributions) > 0) {
echo '<div class="point-sales">' ; echo '<div class="point-sales">' ;
foreach($pointSaleDistributions as $pointSaleDistribution) { foreach($pointSaleDistributions as $pointSaleDistribution) {
//if($pointSaleDistribution->pointSale->status == 1) {
echo $pointSaleDistribution->pointSale->name.'' ; echo $pointSaleDistribution->pointSale->name.'' ;
if(strlen($pointSaleDistribution->pointSale->locality)) { if(strlen($pointSaleDistribution->pointSale->locality)) {
echo ' ('.$pointSaleDistribution->pointSale->locality.')' ;
echo ' ('.$pointSaleDistribution->pointSale->locality.')' ;
} }
echo '<br />' ; echo '<br />' ;
//}
} }
echo '</div>' ; echo '</div>' ;
} }

Loading…
Annulla
Salva