I want to add extra button like "Add to cart" for example "Live Demo". Then, as their are no of products each one have unique demo link that I will add from "Manage attributes" section of admin. I want to redirect "Live Demo" button to that particular product page demo url and after their should be also a button at header section for "Buy now".
Currently I have added a extra button in product page.
How can I do this on grid view and list view.
By making changes in /var/www/magentodemo/app/design/frontend/base/default/template/catalog/product/view/addtocart.phtml
<button type="button" title="<?php echo $Demo ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $Demo ?></span></span></button>
But which class name and onclick function I should call for this button to redirect to external url (to call external url attribute.)
Anyone have done this before. please let me know your thoughts.
Thanks in advance.
