Jump to content

Edit History

grennet

grennet

U mnie błąd, spróbuj go odinstalować i zainstalować drugi.

Ale jak chcesz bez modułu to skorzystaj z tej instrukcji którą napisałem na forum angielskim:

Ona działa idealnie i jest napisane jak krowie na granicy.

Po całym zabiegu skasuj z foldera cache plik class-index.php

I give a short but effective instruction:
You open files with your own store, find the folder classes in the root directory of the domain, and find the file named Customer.php, open it and find:

 'lastname' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
 'firstname' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),

You only replace isName on isCustomerName and save

Then you have to upload it as you do not have the file Validate.php may be what I sent is coded without boom, it has to look like this:

<?php
    class Validate extends ValidateCore
    {
        public static function isCustomerName($name)
        {
            if (preg_match(Tools::cleanNonUnicodeSupport('/www|http/ui'), $name)) {
               return false;
            }
            return preg_match(Tools::cleanNonUnicodeSupport('/^[^0-9!\[\]<>,;?=+()@#"°{}_$%:\/\\\*\^]*$/u'), $name);
        }    
    }

You upload it to override / classes

If you have it, delete it and upload mine, then you clear the cache and delete the class-index.php file from the cache folder and it must work without any module

 

A plik validate.php podsyłam w załaczniku prawidłowy do wstawienia 

 

Linkj do forum angielskiego: 

 

Validate.php

Validate.php

grennet

grennet

U mnie błąd, spróbuj go odinstalować i zainstalować drugi.

Ale jak chcesz bez modułu to skorzystaj z tej instrukcji którą napisałem na forum angielskim:

Ona działa idealnie i jest napisane jak krowie na granicy.

Po całym zabiegu skasuj z foldera cache plik class-index.php

I give a short but effective instruction:
You open files with your own store, find the folder classes in the root directory of the domain, and find the file named Customer.php, open it and find:

 'lastname' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
 'firstname' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),

You only replace isName on isCustomerName and save

Then you have to upload it as you do not have the file Validate.php may be what I sent is coded without boom, it has to look like this:

<?php
    class Validate extends ValidateCore
    {
        public static function isCustomerName($name)
        {
            if (preg_match(Tools::cleanNonUnicodeSupport('/www|http/ui'), $name)) {
               return false;
            }
            return preg_match(Tools::cleanNonUnicodeSupport('/^[^0-9!\[\]<>,;?=+()@#"°{}_$%:\/\\\*\^]*$/u'), $name);
        }    
    }

You upload it to override / classes

If you have it, delete it and upload mine, then you clear the cache and delete the class-index.php file from the cache folder and it must work without any module

 

A plik validate.php podsyłam w załaczniku prawidłowy do wstawienia 

 

Linkj do forum angielskiego: 

 

Validate.php

Validate.php

grennet

grennet

U mnie błąd, spróbuj go odinstalować i zainstalować drugi.

Ale jak chcesz bez modułu to skorzystaj z tej instrukcji którą napisałem na forum angielskim:

Ona działa idealnie i jest napisane jak krowie na granicy.

Po całym zabiegu skasuj z foldera cache plik class-index.php

I give a short but effective instruction:
You open files with your own store, find the folder classes in the root directory of the domain, and find the file named Customer.php, open it and find:

 'lastname' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
 'firstname' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),

You only replace isName on isCustomerName and save

Then you have to upload it as you do not have the file Validate.php may be what I sent is coded without boom, it has to look like this:

<?php
    class Validate extends ValidateCore
    {
        public static function isCustomerName($name)
        {
            if (preg_match(Tools::cleanNonUnicodeSupport('/www|http/ui'), $name)) {
               return false;
            }
            return preg_match(Tools::cleanNonUnicodeSupport('/^[^0-9!\[\]<>,;?=+()@#"°{}_$%:\/\\\*\^]*$/u'), $name);
        }    
    }

You upload it to override / classes

If you have it, delete it and upload mine, then you clear the cache and delete the class-index.php file from the cache folder and it must work without any module

 

A plik validate.php podsyłam w załaczniku prawidłowy do wstawienia

 

Linkj do forum angielskiego: 

 

Validate.php

grennet

grennet

U mnie błąd, spróbuj go odinstalować i zainstalować drugi.

×
×
  • Create New...