I am trying to add a custom button “Buy On Ebay” displayed below the “BUY” now button on WooCommerce this should be included for every product loop linked to a custom field vendor_url
in the back end so that I can specify each product with its own external link.
What I have tried so far.
1st effort
- Installed advanced custom field plugin but I'm not sure how to hook
the URL variable attributes to a button for each looping product.
50% Complete solution and would rather use the plugin below as
vendor_url
is the only custom variable needed.
2nd effort
- Installed https://github.com/Ohar/wc-field-vendor-url This Plugin just adds custom field “vendor_url” to WooCommerce products. Which is exactly what I need however I don't know how to PHP include this variable attribute within a button.
Simplified
Front End: ‘Buy on Ebay’ button next to “Buy” button on Woocommerce.
Backend: vendor_url = 'Ebay Product URL'
Any help would be appreciated.