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