I can Create Additional Custom Button on single product page with following feature. 1st- my button work with product Attribute. if attribute id is "custom_button
" value is "yes
" then show custom button on signal product page and if value is "no
" button hidden on product page. 2nd- custom button name is attribute id "custom_button_name
" value = Button Text
. 3rd- custom button url is attribute id "custom_button_url
" value = "http://www.websiteurl.com
"when click on button open new tab
i have create custom button on magento site with following code. this code work with product attributes how to use this code in woocommerce
<?php if($_product->getCustom_button()){ //yes or no button?>
<button type="button" title="<?php echo $_product>getCustom_button_name() ;?>"
class="action primary tocart"
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 } ?>