uddhava Posted February 20, 2010 Share Posted February 20, 2010 This is logged as a bug in the tracker already since v1.2.5.Is there a quick code hack available to get the import tool to import the friendly URL when importing products ? Link to comment Share on other sites More sharing options...
uddhava Posted February 23, 2010 Author Share Posted February 23, 2010 I found out that the code to import a friendly url is already present in the php file (/admin/tabs/AdminImport.php) at lines 660-669.Here is the code: $link_rewrite = is_array($product->link_rewrite) ? $product->link_rewrite[$defaultLanguageId] : ''; $valid_link = Validate::isLinkRewrite($link_rewrite); $bak = $product->link_rewrite; if ((isset($product->link_rewrite[$defaultLanguageId]) AND empty($product->link_rewrite[$defaultLanguageId])) OR !$valid_link) $link_rewrite = Tools::link_rewrite($product->name[$defaultLanguageId]); if (!$valid_link) $this->_warnings[] = Tools::displayError('Rewrited link for'). ' '.$bak.(isset($info['id']) ? ' (ID '.$info['id'].') ' : '').' '.Tools::displayError('was re-written as').' '.$link_rewrite; $product->link_rewrite = self::createMultiLangField($link_rewrite); But in the back-end you cannot select this url and when i changed some code, it will not import but give the error :URL Rewritten : Default Language is empty.... blah blahObviously this worked before, how else could this code be there? Link to comment Share on other sites More sharing options...
sudh Posted October 13, 2011 Share Posted October 13, 2011 have you able to solve it. if yes then please let me know Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now