Jump to content

How to create products with special characters in Name / Reference


Recommended Posts

Hello,

 

I have a CSV to import, but a lot of products have special characters in product name, reference, meta title and meta description.

 

I tried to change Validate.php as below:

 

public static function isCatalogName($name)
    {
        // return preg_match('/^[^<>;=#{}]*$/u', $name);
        return preg_match('/^$/u', $name);
                
    }

 

and

 

public static function isReference($reference)
    {
        // return preg_match('/^[^<>;={}]*$/u', $reference);
         return preg_match('/^$/u', $reference);
    }

 

but I succeded to import the products with "#" character but I still can't import products with ">" and "=" characters

 

Any idea?

 

Thank you very much.

Link to comment
Share on other sites

Hi Daresh and thank you for your reply.

 

I'd like to do that, but my references have to be saved by Google crawler exactly like they are born, in order to be found by customers.

 

Do you know how to edit Validate.php  at  return preg_match('/^[^<>;=#{}]*$/u', $name);   ??

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...