We want to display the add to cart button to our up-sell block on product page. I tried this code, but that does not work and brake down the page
<button class="button related" type="button" onclick="location.href='<?php echo $this->getAddToCartUrl($_item) ?>'"><span><?php echo $this->__('Add to Cart') ?></span></button>
We do use this same code for the related block on the page, maybe that's the problem?
What code do I need to display the add to cart button for the up-sell block?