Пример #1
0
 /**
  * Retrieve clear url for category as parrent
  *
  * @param string $url
  * @param bool $slash
  * @param int $storeId
  *
  * @return string
  */
 public function getCategoryUrlPath($urlPath, $slash = false, $storeId = null)
 {
     if (Mage::getStoreConfig('activo_categoryurlseo/global/enabled') == 0) {
         return parent::getCategoryUrlPath($urlPath, $slash, $storeId);
     } else {
         return Mage::getStoreConfig('activo_categoryurlseo/global/toplevel');
     }
 }
Пример #2
0
 /**
  * @magentoConfigFixture current_store catalog/seo/category_canonical_tag 1
  */
 public function testCanUseCanonicalTag()
 {
     $this->assertEquals(1, $this->_helper->canUseCanonicalTag());
 }