I have created Custom Button using following Code at themes/package/woocommerce/single-product/add-to-cart/simple.php
<?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 } ?>
but this code is not work properly.
i want custom button work with product attributes.