Jump to content

Property Product->Ean13 Is Not Valid


Recommended Posts

I suppose you have checked that the EAN is actual correct?

 

Type it here and I can check it on my store

 

How are you getting the error? When typing in from the back office? When uploading via CSV?

Try to give much more info so we can help you

Link to comment
Share on other sites

Hello, thank you for your answers :))

 

I've got this problem, when i'm trying to import  .csv file on my e-shop. When i trying to upgrade the 1-Click Upgrage module (to Presta 1.6.1.3. from 1.6.1.1.), and i've got a error message "Javascript (parseJSON) upgrageNow". (Maybe in a new version this problem will be solved :) )

 

 

 

I've had the same problem with 1.6.1.0 even though the EAN13 code was correct. It was solved though, in PS 1.6.1.2.

 

As a temporary workaround I made an override for the Validate class to accept every code.

 

Place the following contents in the file /override/classes/Validate.php

<?php

class Validate extends ValidateCore
{
    public static function isEan13($ean13)
    {
        return true;
    }
}

You will have to merge the contents if the file exists or otherwise create the file.

 

Thank you, but it is not working...  :(  :(  :(  :unsure:

Edited by junsenoue (see edit history)
Link to comment
Share on other sites

Start a new thread about the upgrade - that is a different issue (search Google for  prestashop javascript error upgrade now 0 Google searches this form better than the forum search)

 

 

The CSV issue: The file does not contain an EAN number at all what EAN number are you using?

Link to comment
Share on other sites

Start a new thread about the upgrade - that is a different issue (search Google for  prestashop javascript error upgrade now 0 Google searches this form better than the forum search)

 

 

The CSV issue: The file does not contain an EAN number at all what EAN number are you using?

 

EAN number is empty.

 

i'm trying to add a special EAN number like 4593125478965, but it still not working...

Link to comment
Share on other sites

EAN number is empty.

 

i'm trying to add a special EAN number like 4593125478965, but it still not working...

I wanted to see the actual CSV file you are trying to upload with all the data including the EAN number so I could see if there are any formatting issues

 

Excel can do strange stuff with numbers for example 4593125478965 may be converted to 4.59 E13 or some scientific notation, or perhaps it has been converted to text, or it has decimal places added

Link to comment
Share on other sites

I wanted to see the actual CSV file you are trying to upload with all the data including the EAN number so I could see if there are any formatting issues

 

Excel can do strange stuff with numbers for example 4593125478965 may be converted to 4.59 E13 or some scientific notation, or perhaps it has been converted to text, or it has decimal places added

 

Thank you for your answer!  :rolleyes:

But i didn't have an EAN-13 number in all of my 908 products  :D.

 

Actually I want to disable  EAN-13 check, when  I importing the products. (.csv) The same problem of Presta user is here:

https://www.prestashop.com/forums/topic/226673-disable-ean13-check-csv-import/

 

Validate.php

 /**
     * Check for barcode validity (EAN-13)
     *
     * @param string $ean13 Barcode to validate
     * @return bool Validity is ok or not
     */
    public static function isEan13($ean13)
    {
        return !$ean13 || preg_match('/^[0-9]{0,13}$/', $ean13);
    } 

 .csv  (Download)

 

This is original .csv table from my website. So i can to exprot this product, from the category "test", but i can't to import the same file in this category, but also with a diferent ID number of product, because of the error of EAN-13 code, which is empty in all of my 908 products  :blink:  :D

Edited by junsenoue (see edit history)
Link to comment
Share on other sites

OK, I think I understand.

 

I downloaded and uploaded your file, and it worked for me

 

post-246958-0-95467300-1449336538_thumb.jpg

 

So it does work

 

Make sure your settings are correct, I used these:

 

post-246958-0-68490100-1449336568_thumb.jpg

 

AND MOST IMPORTANT

 

Make sure yo match all the headings. The default headings are wrong see here:

 

So go through each headings and make it matches with the csv file. I chose "Ignore this field" for many of the fields

 

 

 

 

post-246958-0-58932000-1449336607_thumb.jpg

Link to comment
Share on other sites

OK, I think I understand.

 

I downloaded and uploaded your file, and it worked for me

 

attachicon.gifsuccess.jpg

 

So it does work

 

Make sure your settings are correct, I used these:

 

attachicon.gifsettings.jpg

 

AND MOST IMPORTANT

 

Make sure yo match all the headings. The default headings are wrong see here:

 

So go through each headings and make it matches with the csv file. I chose "Ignore this field" for many of the fields

 

Thank you for your answer!!!!!!!!! :))

 

Now, it's works!!!!!!!!!!!!!!  :lol:  :lol:  :lol:  :rolleyes:  :rolleyes:  :rolleyes:  :rolleyes:  :rolleyes:  :rolleyes:

 

The problem was in headings. :)))  :wub:

 

THAK YOU VERY MUCH!!!!  :rolleyes:

Link to comment
Share on other sites

×
×
  • Create New...