refactor getDetails to product.getDataByFolderId