make it work with latest changes in master, update dummy_purchase tpl.