Moving over some template stuff from the e-commerce plugin