I want to show two Add To Cart
button in view.phtml
page. those buttons are following,
- Add To Cart
- Insta Buy
Add To Cart
button working with normal functionality, It works fine.
But When user click Insta Buy
directly redirect to checkout/onepage
. I tried some code but it goes to checkout/cart
page. That code is following
<button type="button" title="<?php echo $this->__('Insta Buy') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Insta Buy') ?></span></span></button>
I want to redirect to
checkout/onepage
page. How can i do this.