Esempio n. 1
0
 public function getBrand()
 {
     if (null === $this->_brand) {
         $brand = strtolower(Mage::registry('oem_brand'));
         if (!$brand) {
             $brand = Mage::app()->getRequest()->getParam('brand');
         }
         $this->_brand = $brand;
         $this->_brandCode = Vikont_ARIOEM_Helper_Data::brandURLNameToARI($this->_brand);
     }
     return $this->_brand;
 }
Esempio n. 2
0
 public function getBrands()
 {
     $helper = Mage::helper('arioem');
     $brands = $helper->getBrands();
     $currentBrand = $helper->getCurrentBrandName();
     if ($currentBrand) {
         $currentBrandCode = Vikont_ARIOEM_Helper_Data::brandURLNameToARI($currentBrand);
         if ($currentBrandCode && isset($brands[$currentBrandCode])) {
             return array($currentBrandCode => $brands[$currentBrandCode]);
         }
     }
     return $brands;
 }