I have been scratching my head for nearly three hours trying to figure out how I could add a "checkout" button to a page once a product has been successfully added to the shopping cart.
I have created a module that uses the checkout_cart_product_add_after event but I have hit a brick wall.
I there a simpler method to do this?
After some input from @Sven I scrapped the Observer method. I'm try to write an IF clause that will check if an item is in the shopping cart but not having much success IF anyone can share the correct argument to pass please let me know...
<?php $totalItemsInCart = Mage::helper('checkout/cart')->getItemsCount(); ?> <?php if($totalItemsInCart) ?> <button type="button" title="<?php echo $this->__('Continue Shopping') ?>" class="whatever btn-continue" onclick="setLocation('<?php echo $this->getContinueShoppingUrl() ?>')"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button> <?php else: ?> //Nothing to delclare <?php endif ?>