i have create custom button("live preview")on product page using following code
<?php
if($_product->getCustom_button()){ //yes or no button
?>
<button type="button" title="<?php echo $_product->getCustom_button_name() ;?>" class="btn btn-default" onclick="window.open('<?php echo $_product->getCustom_button_url() ;?>')"><span><span><i class="icon-desktop"></i><?php echo $_product->getCustom_button_name() ;?></span></span></button>
<?php } ?>
how i can add this button on product category page button name is "live preview" i am using magento