Home › Forums › EAN and Barcodes for WooCommerce › EAN number is the same for every variable
- Support forum for the EAN and Barcodes for WooCommerce.
- This topic has 12 replies, 2 voices, and was last updated 1 year, 3 months ago by Tom Anbinder.
February 16, 2022 at 10:44 am #85087
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.February 16, 2022 at 10:57 am #85088
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”?February 16, 2022 at 10:59 am #85089
No, anything. The field is empty.February 16, 2022 at 11:00 am #85090
Hmm… Just to be sure – product ID for every new variable product is different, correct?February 16, 2022 at 11:03 am #85091
Yes! Every variation has a different ID.February 16, 2022 at 11:50 am #85092
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”.February 16, 2022 at 12:24 pm #85093
I’ve just sent you credentials through email. Could you please confirm it? Thank youFebruary 16, 2022 at 12:32 pm #85094
Yes, I’ve received it, thanks. Let me take a look and get back to you…February 16, 2022 at 12:45 pm #85095
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).February 16, 2022 at 2:17 pm #85096
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 youFebruary 16, 2022 at 3:04 pm #85097
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.February 16, 2022 at 3:12 pm #85098
Thank you a lot!! Astonishing support!February 16, 2022 at 3:59 pm #85099
- You must be logged in to reply to this topic.