Ejemplo n.º 1
0
 /**
  * Return list of product labels
  *
  * @param \XLite\Model\Product $product The product to look for
  *
  * @return array
  */
 protected function getLabels(\XLite\Model\Product $product)
 {
     $labels = parent::getLabels($product);
     if ($this->isShowMarketPrice($product)) {
         $labels += \XLite\Module\CDev\MarketPrice\Main::getLabels($product);
     }
     return $labels;
 }
Ejemplo n.º 2
0
 /**
  * Return the "x% label" element
  *
  * @param \XLite\Model\Product $product Current product
  *
  * @return array
  */
 protected function getLabels(\XLite\Model\Product $product)
 {
     return \XLite\Module\CDev\MarketPrice\Main::getLabels($product);
 }