Ok so after a lot of trial and error I almost have it.
Only one little problem.

If someone could have look and let me ow how to fix this would be great.
http://www.gefo.ca/GeFo_Store/

Probably just not code in the right place
I put it in the tpl_main and the function in the main directory.

Thanks