Exemplo n.º 1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->hasAttributes();
 }
Exemplo n.º 2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->isProductAvailableForSale();
 }
Exemplo n.º 3
0
 /**
  * Return available amount
  *
  * @return integer
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getProduct()->getFreeShip();
 }
Exemplo 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());
 }
Exemplo n.º 5
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/Wholesale/product_price/style.css';
     return $list;
 }