get current product name in functions.php

by riccardo airone   Last Updated June 13, 2019 01:08 AM

i create a button in a current product page after woocommerce_single_product_summary

i would to get information about the current product ( for example name and price) and through the button send an email for get information

this is the code of my functions.php file:

add_action( 'woocommerce_single_product_summary','content_after_addtocart_button' );

function content_after_addtocart_button() { 
echo '<div class="content-section">
<a href="mailto:[email protected]?&subject= Richiesta Informazioni&body= product name ??? product price ??? ">
<input type="button" value="Richiedi Informazioni"/ ></a></div>'; 

anyone can help me ?

Related Questions

Updated December 03, 2017 14:08 PM

Updated July 14, 2018 21:08 PM

Updated July 23, 2017 11:08 AM

Updated June 17, 2018 20:08 PM