Jump to content

Ελληνικά Url Για Prestashop 1.5.3.1 (Επιτέλους)


papazetis

Recommended Posts

Πρώτα-πρώτα πρέπει να ευχαριστήσουμε τον 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 by papazetis (see edit history)
Link to comment
Share on other sites

στο 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_

:rolleyes:

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...