This PHP code enables you to add a button next to your add to cart button on the single product page like this :
Copy and paste the following PHP code to the end of your child themes functions file or custom functionality plugin.
You can extend this code to link directly to the download file or add a custom field using get_post_meta or get_meta.
Leave a Reply