Generates valid EAN13 codes from Magento Product ID's