Ejemplo n.º 1
0
 public function getHtml()
 {
     if ($this->helper('customerprices')->isEnabled() && $this->helper('customerprices')->isHidePrice() && !$this->helper('customer')->isLoggedIn()) {
         return 'You need to <a href="' . Mage::getUrl('customer/account/login') . '">login</a> to see prices<br/>';
     }
     return parent::_toHtml();
 }
Ejemplo n.º 2
0
    /**
     *
     * Prepare html for slider and add JS that incorporates the slider.
     *
     * @return html
     *
     */
    public function getHtml()
    {
        if ($this->getSliderStatus()) {
            $text = '
				<div class="price">
					' . $this->getPriceDisplayType() . '
					<div class="range-wrap"><div id="slider-range"></div></div>

				</div>' . $this->getSliderJs();
            return $text;
        }
        return parent::_toHtml();
    }
Ejemplo n.º 3
0
    /**
     *
     * Prepare html for slider and add JS that incorporates the slider.
     *
     * @return html
     *
     */
    public function getHtml()
    {
        if ($this->getSliderStatus()) {
            $text = '<div class="price price-filter-slider">
				<div>
					<div class="slider-range"></div>
                    ' . $this->getPriceDisplayType() . '
					
				</div><div class="clearer"></div></div>' . $this->getSliderJs();
            return $text;
        } else {
            return parent::_toHtml();
        }
    }