Cool, you have an online vape shop. Sweet.
Sure if the code is in home.tpl, it will be called on every page. customer/home.tpl is the container for every customer side page.
If you want to restrict it to the home page, you need to add an if statement around all the code.
Code:
{if $main eq "catalog" and $current_category.category eq ""}
All your code above goes here
{/if}