Using template - added 'addtocart' function