You can use woocommerce_single_product_summary
hook to add custom button in the single product page in WooCommerce. Please check following example. Custom link added and button
class is given to display it like a button.
add_action( 'woocommerce_single_product_summary', 'wpso_add_seller_button', 15 );
function wpso_add_seller_button() {
echo '<a href="https://example.com" class="button">Contact Seller</a>';
}
Related Posts:
- Hook and send Woocommerce data after click Place Order button
- Remove add to cart icon/view product button woocommerce
- Add to Cart button displaying twice on Shop Page Woocommerce
- how to change the “return to shop” button text? [closed]
- Placing Lock Icon on WooCommmerce “Place Order” Checkout Button (WordPress ‘ignoring’ Changes…)
- Woocommerce – Remove ‘Buy Product’ Button + Make Product Thumbnails Clickable
- Rename woocommerce button [closed]
- Woocommerce – Remove ‘Buy Product’ Button from shop page [closed]
- Add a custom code with custom link after add to cart for every product
- How to display product price of the product in loop
- Limit users to one active subscription in WooCommerce Subscriptions? [closed]
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- How do I add a text input field for customers to leave a note on a single WooCommerce product page?
- WooCommerce add_to_cart() with custom price [closed]
- WooCommerce HTML after short description if product is in specific category
- How to get total count for each star rating?
- WooCommerce Apply Coupon to order AFTER taxes
- Auto update cart after quantity change
- echo product id and product_item_key in cart [closed]
- How can I display *only* the child category of a product?
- Save and display selected product option and cost as cart item data in WooCommerce
- How to implement Handling Fee like the Shipping on Cart and Checkout page on WooCommerce [closed]
- why featured product not updated in postmeta table in woocommerce?
- How to remove product base from WooCommerce product permalinks
- woocommerce image product add a class and data-src attributes
- Woo create order only after payment done
- Change Category Widget Dropdown List Select Name
- wooCommerce checkout page State / County (optional) validate not working
- WooCommerce – Multiple meta query not working
- How to display the result of a custom metabox in the frontend [closed]
- Quantity on the product card and subtotal disappear [closed]
- Admin access for custom user capabilities
- Display product category taxonomy terms in WooCommerce shop loop
- WooCommerce limited role
- Skip WooCommerce 4.5.x onboarding with WP-CLI [closed]
- Woocommerce Moving Review Below add to cart breaks button
- WP All Import manual Cron
- Automatically making a newly saved payment method default in WooCommerce
- Refund from wooCommerce with stripe [closed]
- Download permission for non-purchased products
- Display FREE for $0 products in woocommerce ++++ [closed]
- How to add existing categories into a post using wp_insert_post
- create comment box in woo-commerce shop order [closed]
- Woocommerce: how to know if the customer is canceled the order or the shop owner? [closed]
- WooCommerce Hook: Content get’s displayed twice and not AFTER the order total
- Have I got this IF Statement correct?
- WooCommerce Price Filter not working? [closed]
- How to replace WooCommerce Product Gallery Trigger icon using PHP/CSS? [closed]
- Cancelled orders move to Trash automatically in Woocommerce – how to disable?
- Adding Field in WooCommerce
- Woocommerce Sort by default variation price
- Add Name and SKU Main Product to Secondary Product to Cart
- Conditional logic – if product has a parent category, echo this
- WooCommerce set default product sort to product description (content) [closed]
- Add rewrite rule to make Woocommerce product category page seo friendly
- How to show the urls inside the simple product when the customer buys it?
- Custom template – query issues
- Prices showed without decimals separator on BACKEND. Weight/price not working on Wocommerce
- add the attribute value above the english product title
- How to add woocommerce products header title in woocommerce_breadcrumb hook to function.php
- Can I create categories or attribute contain more than 70,000?
- Format decimals of get_price_html
- apply_filter and add_filter conflict
- Combine one action and one filter
- How to run code when cookie is added?
- Return product list based on current product attribute
- Getting in an exception for get product detail by id in woocommerce REST api
- How to make wocommerce shop products same heigt
- Woocommerce Ajax add to cart redirect to homepage
- WooCommerce – Remove automaticly added membership product if user remove regular product from cart
- Temporary access to page with URL sent to email
- How to save a Woocomerce metabox input as a metadata field
- WooCommerce product id as permalink
- Merge “description” and “additional informations” product tab
- I need to refresh the checkout page if someone changes the zip code
- Correct method of reducing the number of images created by WP and Woo together
- Get user active posts randomly
- add_filter not works in ajax
- How to skip woocommerce checkout after payment page? [closed]
- Product thumbnail size in catalog
- Website Tablet Check Out Field Issue
- WooCommerce order created via REST – sending the date_created along
- how can i import the csv file in wordpress woocommerce.?
- some products free and some product is not free for shipping
- Get Third Level Categories WooCommerce
- Change wp-login.php? Problem with .htaccess password protection and multi user shop
- Conditional email recipient based off Shipping Method [closed]
- Save Woocomerce discount as percentage to database
- Show pop up message for specific categoryies
- How to bypass Woocommerce checkout validation from the plugin? [closed]
- Custom product loop avoiding duplicates
- Issue with Woocommerce and extra field in orders data
- How to remove content from hacked pages? [closed]
- Disable WooCommerce Address State Dropdown
- How to show detailed order history on woocommerce product page [closed]
- Give auto discount to upsells products
- Making product image in woocommerce invoice linkable [closed]
- Woocommerce | I want to the button ‘Add to Cart’ on the (all) product-page changed by just ‘open product’ button
- Adding line breaks in WooCommerce order processing emails
- Add second price option based on payment method at cart item price