protected function applyName($product)
 {
     if ($this->shouldApplyName($product)) {
         if (file_exists(ELITE_PATH . '/Vafsitemap')) {
             $helper = new Elite_Vafsitemap_Helper_SeoName();
             $helper->applyName($product);
         }
     }
 }
Exemplo n.º 2
0
 /** @todo write acceptance test 0000328: Elite_Vaf_Block_Product_List should not depend on SEO module being present */
 protected function applyNames($collection)
 {
     if (class_exists('Elite_Vafsitemap_Helper_SeoName', false)) {
         $helper = new Elite_Vafsitemap_Helper_SeoName();
         foreach ($collection as $product) {
             $helper->applyName($product);
         }
     }
 }