replaced get custom fields function with meta data of product as source