Ejemplo n.º 1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->hasAttributes();
 }
Ejemplo n.º 2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->isProductAvailableForSale();
 }
Ejemplo n.º 3
0
 /**
  * Return available amount
  *
  * @return integer
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getProduct()->getFreeShip();
 }
Ejemplo n.º 4
0
 /**
  * Check - 'out of stock' label is visible or not
  *
  * @return boolean
  */
 protected function isOutOfStock()
 {
     return $this->getProductVariant() ? $this->getProductVariant()->isOutOfStock() : ($this->getProduct()->mustHaveVariants() ? true : parent::isOutOfStock());
 }
Ejemplo n.º 5
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/Wholesale/product_price/style.css';
     return $list;
 }