I would be glad if someone know how to do this:
When a product is out of stock or is unpublished you can still access it by typing the product url, does anyone know how to unpublish the product so if anyone tries to acess it by typing the url he will get redirected to the fist store default page.
Hope to hear from someone:)