Please check below code :
add_action( 'woocommerce_single_product_summary','content_after_addtocart_button' );
function content_after_addtocart_button() {
global $product;
$product_title = $product->get_name();
$product_price = $product->get_price();
echo '<div class="content-section">
<a href="https://wordpress.stackexchange.com/questions/340361/mailto:[email protected]?&subject=Richiesta Informazioni&body=" . $product_title . '??? ' . $product_price . ' ??? ">
<input type="button" value="Richiedi Informazioni"/ ></a></div>';
}
Related Posts:
- Woocommerce – remove product from category
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Hide child of parent categories already hidden with “get_terms_args” – Woocommerce
- Edit tag cloud widget number
- How to automatically apply woocommerce product title to all product images alt tags?
- exclude multiple terms using get_terms() function
- retrieve thumbnail from post ID of best selling product in category
- How to get the original price of the product in woocommerce?
- Woocommerce auto cancel On-Hold after X days
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Allow authors to post only in categories they create in WordPress
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- Add custom field to attachments in a specific category
- WooCommerce – Customer Order History Pagination
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- The values of custom fields are not available functions.php
- How to Populate the list of custom post type categories
- Php string not working in WordPress Functions.php [duplicate]
- Limiting woocommerce line_total decimal length
- How do I display a user’s previous orders as a select box option on a product?
- How do you add customer capability after Woocommerce purchase?
- combine Code 1 with Code 2
- WooCommerce – Reset quantity input field when variation changes
- get post based on category chosen in drop down – The ajax method
- Image as Sales Badge
- Swapping wp_dropdown_categories function with wp_category_checklist
- Automatically remove a canceled order in Woocommerce
- Two Different Links for Same Product – WooCommerce [closed]
- Issue adding sub category programmatically
- How can I apply_filters from inside a function?
- Auto-update products after they were published – Woocommerce
- Display a specific category of products in shop page and disable code for specific actions
- Woocommerce related product text
- How to pick the default selected value in wordpress dropdown?
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Get page that displays all children of taxonomy parent
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- How can I get the values of my WordPress $wpdb query in Jquery?
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Validation algorithm in checkout field
- My new button is in the wrong place
- Redirect to another page using contact form 7? [closed]
- Dilemma of Populating all the categories in a drop down list
- Edit the_category (); for a hierarchical display
- get taxonomy thumbnail and use it as a variable in code
- Displaying posts based on category
- require_once() if a product in woocommerce contains a tag [closed]
- Discount in the specific product title using keyword ( Woocoommerce )
- Including user data in “new user notification email”
- Notice: Undefined variable
- Woocommerce – if selected attribute term equals
- split 1 cart item into instock and back ordered
- Hide a specific category title from displaying on site
- Adding product permalink on admin order page throwing error
- Add Product Permalink in woocommerce admin order page
- How to override WooCommerce Order Item Meta with data from Cart?
- Woocommerce textarea format ignored
- How to auto-generate random numbers in username?
- Remove generated category and tag class names from woocommerce product & blog listings markup
- WP_Query To Display Product Of Brand On Taxonomy Page
- Woocommerce Add custom “Add to cart button” in single page with tags
- Get Billing Email from WooCommece Checkout and Pass to Fullstory JS
- Populate Posts based on category selected using AJAX that means without page refresh
- All categories options or All categories not Populating
- random woocommerce categories are not showing when count enabled?
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- Add missing alt tag to featured images for “storefront” theme
- PHP get_category() function redeclared
- Display text of price (minus 20%) on every product page in a sentence.
- Need Quick Help With Product Category Page
- WordPress using get_term to retreive slug not working as expected
- Use WP_Query Data In Cookie
- Woocommerce Price Text
- Get category id for a custom category and display it in a class
- Trying to see if page is category or single and displaying title with appropriate heading tag
- How to get the rating value of each comment
- How to add margin underneath woocommerce total price amount -> productpages
- Displaying categories
- Setting WooCommerce currency programmatically
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- Product Category Page in Full Width
- How to insert the first letter in uppercase [closed]
- Warning: Attempt to read property “term_id” on int – Woocommerce
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- posts_clauses drop ACF get_field function
- Replace the image of a product with its video in the shop page
- Automatically change insurance quantity based on cart total [closed]
- How call WordPress shortcode inside function file
- strict custom php script on specific product category [closed]
- Change WooCommerce Order status from frontend form submitted data
- Exclude a category ID from the following function
- Add text below WooCommerce short description if metabox value is true
- Woocomerce custom add to cart button edit functionality [closed]
- How to change product title color in shop page if product has specific product tag (Woocommerce)?
- How to capture number input from wordpress form into acf field in woocommerce
- Help with get_categories code
- Is it possible to go to the next post in the same category?
- How to get default variation ID (woocommerce)
- Assign a value (got from an xml file) to an attribute of Woocommerce products