Monthly Archives: August 2010

Magento – Programmatically Add Entries to URL Rewrite Mgmnt Console

Mage::getModel(‘core/url_rewrite’) ->setIsSystem(0) ->setStoreId($storeId) ->setOptions(‘RP’) ->setIdPath(‘index.php?cat=c’ . $oscCategoryId . ‘_’ . $this->strip($data['name']) . ‘.html’) ->setTargetPath($categoryModel->getUrlPath() . ‘.html’) ->setRequestPath(‘index.php?cat=c’ . $oscCategoryId . ‘_’ . $this->strip($data['name']) . ‘.html’) ->save();

Posted in Lab | 1 Comment

Oscommerce to Magento Product Import with URL Mapping for SEO

Here is a brief writeup on how to import products and categories from an osCommerce based store and at the same time generate a RewriteMap to map your previous shops URL’s to your new ones using 301 redirects. Steps are … Continue reading

Posted in Lab | 2 Comments