papazetis Posted February 14, 2013 Share Posted February 14, 2013 (edited) Πρώτα-πρώτα πρέπει να ευχαριστήσουμε τον Damien METZGER, που ασχολήθηκε με το πρόβλημα. Στο παρακάτω link είναι η λύση. Προσοχή αλλάζετε ΜΟΝΟ το controllers/admin/AdminMetaController.php και ενεργοποιείτε τα Accented URLs στο Preferences > SEO and URLs. That's all. You can now enable accented URLs in the backend https://github.com/P...919433b1ed9b1db Ελληνικά URL......!!!!!!!!!!!! http://forge.prestashop.com/browse/PSCFV-7761 Edited February 14, 2013 by papazetis (see edit history) Link to comment Share on other sites More sharing options...
gomorie Posted February 19, 2013 Share Posted February 19, 2013 Καλησπερα Papazetis, δουλευει κανονικα με μικρη αλλαγη στο ονομα μεσα στα αρχεια. Ευχαριστω πολυ Link to comment Share on other sites More sharing options...
papazetis Posted February 19, 2013 Author Share Posted February 19, 2013 Παρακαλώ. Αλλά τι αλλαγή έκανες εγώ δεν έκανα απολύτως τίποτα. Link to comment Share on other sites More sharing options...
gomorie Posted February 20, 2013 Share Posted February 20, 2013 στο AdminMetaController.php απο σειρα 67 67 'PS_ALLOW_ACCENTED_CHARS_URL' => array( 68 'title' => $this->l('Accented URL'), 69 'desc' => $this->l('Enable if you want to allow accented characters in your friendly URLs.'), 70 'validation' => 'isBool', 71 'cast' => 'intval', 72 'type' => 'bool' 73 ), στο Tools.php απο σειρα 969 969 public static function str2url ( $str ) 970 { 971 $str = trim($str); /*prosthesa ayto*/ 972 if (function_exists('mb_strtolower')) 973 $str = mb_strtolower($str, 'utf-8'); 974 /* exw bali se sxolio 975 $str = trim($str); 976 if (!function_exists('mb_strtolower') || !Configuration::get('PS_ALLOW_ACCENTED_CHARS_URL')) */ 977 elseif ('PS_ALLOW_ACCENTED_CHARS_URL') /*prosthesa ayto*/ 978 $str = Tools::replaceAccentedChars($str); 979 980 // Remove all non-whitelist chars. Apo ayto den exw alaksi tipota: if (Configuration::get('PS_ALLOW_ACCENTED_CHARS_URL')) $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str); else $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-]/','', $str); $str = preg_replace('/[\s\'\:\/\[\]-]+/', ' ', $str); $str = str_replace(array(' ', '/'), '-', $str); to onoma poy alaksa einai to 'PS_ALLOW_ACCENTED_CHARS_URL' logo oti sti basi moy i pinakes arxeizoyn apo PS_ 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