EAN number is the same for every variable

Top WooCommerce & WordPress Plugins Forums EAN and Barcodes for WooCommerce EAN number is the same for every variable

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #85087
    imrk
    Participant

    Hi again! The last days without changing any option into the plugin, every time I create a new variable product, the EAN number that is generating automatically is the same for every variable. This wasn’t happening before. Also, I just saw your recent update and perform it but the problem remains.

    #85088
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Could you please let me know if you’ve set anything for the “Seed prefix (optional)” option in “WooCommerce > Settings > EAN > Tools > Product Tools > Generate”?

    #85089
    imrk
    Participant

    No, anything. The field is empty.

    #85090
    Tom Anbinder
    Moderator
    Plugin Support

    Hmm… Just to be sure – product ID for every new variable product is different, correct?

    #85091
    imrk
    Participant

    Yes! Every variation has a different ID.

    #85092
    Tom Anbinder
    Moderator
    Plugin Support

    I’ve just re-tested it on my server, but, unfortunately, wasn’t able to reproduce the issue – each variation has a different EAN here. Would it be possible to log in to your site and check what’s going on (my email is [email protected])? And if sharing an account is not an option, could you please send me the screenshot of your settings in “WooCommerce > Settings > EAN > Tools”? Or, alternatively, you can export and send me the file of all plugin settings via “WooCommerce > Settings > EAN > Advanced > Export/Import Plugin Settings”.

    #85093
    imrk
    Participant

    I’ve just sent you credentials through email. Could you please confirm it? Thank you

    #85094
    Tom Anbinder
    Moderator
    Plugin Support

    Yes, I’ve received it, thanks. Let me take a look and get back to you…

    #85095
    Tom Anbinder
    Moderator
    Plugin Support

    Ok, now I understand what’s happening. You are generating EAN-8 codes, and EAN-8 consists of a 3-digit country prefix, 4-digit “seed” (i.e. product id), and the last digit is a checksum digit. Now, as you’ve crossed 10000 product IDs recently, your EANs ran out of “free space” (as your product ID has 5 digits now, not 4 as we need it in the EAN-8 case). Now regarding the solution – let me think about it for a bit, but I’m sure I’ll come up with something. We have two options basically – either use a 2-digit country prefix or modify the “seed” part somehow (the last digit – a checksum – is the one we can’t customize, as otherwise, we won’t get a valid EAN-8 code).

    #85096
    imrk
    Participant

    So, about the solution. What do think? Is it easier to use a country prefix such as GR before the digits? Or someday it will run out of codes again? Thank you

    #85097
    Tom Anbinder
    Moderator
    Plugin Support

    I’ve just installed a new plugin version (v3.2.1-dev) on your site. There I’ve added a new option – “Country prefix length” (it’s in “WooCommerce > Settings > EAN > Tools > Product Tools > Generate”). We can now set it to 2 (I’ve already done this on your site) – this should solve the issue. Please note that this will work only for the EAN-8 type – other types will always use 3. Please give it a try and let me know what you think.

    One note though – we will get the same problem when you will reach 100000 products. The most obvious solution to this is to use EAN-13 instead of EAN-8. Even though theoretically there is a limit of products in EAN-13 as well, in reality, there is no way any site will have so many products.

    And finally regarding your suggestion – “… country prefix such as GR before the digits…” – unfortunately, it’s not possible, as EAN codes must have digits only, i.e. no letters.

    #85098
    imrk
    Participant

    Thank you a lot!! Astonishing support!

    #85099
    Tom Anbinder
    Moderator
    Plugin Support

    Happy to help 🙂 Let me know if you need anything else.

    And if you like the plugin, please consider leaving me a rating here or here.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.