seansan / snh-settings

0 stars 0 forks source link

Please check code in new submodule SNH_CategoryParentUrl #11

Closed seansan closed 10 years ago

seansan commented 10 years ago

Please check code in new submodule SNH_CategoryParentUrl (committed to code @ 25/8 20:32 EU time)

  1. This sub module should This module adds a yes/no option labelled as "Use Parent Category Path for Category URLs" on Magento Admin Panel -> System -> Configuration -> Catalog -> Seo Options to remove parent category path from url and change it from www.domain.com/cat1/cat2 to www.domain.com/cat2
  2. please quickly debug code so it works (please dont spend to much time, code examples are provided)
  3. Add code to revert to default Magento if extension set to no or is null

` /* SNH custom code Magento 1.8.1 verify before upgrade */ $configValue = Mage::getStoreConfig('catalog/seo/category_use_parentcategory',Mage::app()->getStore());

if (null === $configValue || $configValue) {
        return parent::getCategoryRequestPath($category, $parentPath);
}

`

use this for example or input http://freegento.com/magento-extensions/activo_categoryurlseo-2.0.0.tgz or this for example code (that works) http://freegento.com/ddl-magento-extension.php?ext=http%3A%2F%2Fconnect20.magentocommerce.com%2Fcommunity%2Factivo_categoryurlseo

elsner-jugal commented 10 years ago

Done. Kindly review.