Only add add_to_cart_button if purchasable and in stock

Fixes #5132