Try this
function wc_shop_open_product() {
echo '<a class="button demo_button" href="'.get_the_permalink().'">Open product</a>';
}
add_action( 'woocommerce_after_add_to_cart_button', 'wc_shop_open_product' );
Related Posts:
- How to remove an action within a class with extends
- Create WooCommerce custom stock option that is non-purchasable
- Query multiple post type and categories
- Shipping restrictions with WooCommerce variable products
- WooCommerce – Flat rate shipping based on X quantity steps?
- woocommerce_before_calculate_totals in woocommerce 3.0
- Custom URL for each product variation – rewrite rules
- Change “Shipping” text to “Delivery” everywhere I appears in woocommerce
- Customize WooCommerce orders displayed shipping
- Display a list subcategories under the main product category thumbnails?
- Unable to programmatically remove product from WooCommerce cart
- creating product with variations using woocommerce REST API
- Is it possible to cache ?wc-ajax=get_variation
- Adding extra one email address who receives email as admin – woocommerce
- Woocomerce language
- How to set default values in Woocommerce checkout? [closed]
- Display list of categories that contain products with a specific tag
- Payment methods are not displaying in Woocommerce
- Product admin page breaking with too many product variations [closed]
- How to configure Woocommerce Payment Methods programmatically?
- Add content to the last slide of each product
- Remove add to cart icon/view product button woocommerce
- Products Shortcode is Displaying Single Product Page Price for all Products [closed]
- Product options/variations notice displays as an Alert [closed]
- Expired session error (admin) when I try to make a call to WooCommerce api [closed]
- Hide decimal on hompage, category and product page
- Get order_id from the product_id in woocommece [closed]
- Shipping methods in dropdown instead of radio buttons [closed]
- How to increase execution time out limit in WordPress dashboard?
- 600k of option_name “c_facebook_background_product_sync_job”
- Woocommerce get the Archive/Category slug of the current category page
- Woocommerce Variable Product – Please choose product options… [closed]
- Woocommerce. Max weight per order based on shipping class
- Make order notes field at woocommerce checkout only viewable on front end by Admin level user role [closed]
- How to apply these filters
- get_the_post_thumbnail_url does not return anything if image size is set
- Woocommerce – auto logout after payment
- Display SKU for each Single product title in group product!
- How can I add a so i can show sale price under normal price
- WooCommerce checkout page price break down table hook
- How can I compel alphanumeric entries for username textbox on woocommerce registration form
- Help me to intergrate product database to WordPress
- Using the WordPress and WooCommerce REST APIs in the same Node app
- How to add a “buy now” button below “add to cart” button [closed]
- Cart page displays the price and amount as zero regardless of price entered [closed]
- Next/Previous Product with custom order by price & products inside the product category [closed]
- Display list of only specific tags on product
- Change the “Register” headline in Woocommerce
- How to display customer mobile number in woocommerce customers page
- Submitting product attributes via Ninja Forms wordpress?
- Get all categories inside a Product Tag archive page
- How to Add “parent category description” in Woocommerce sub category page if there is no description available for child category
- Woocommerce – Hide shipping at all, if only certain product or products with certain shipping class is in the cart
- Running JavaScript after using WooCommerce Filter Plugin
- Include stock information in WooCommerce order confirmation email
- Woocommerce get attributes
- Add custom field address_3 before city in user profile
- How to upload very large JPGs to Media Library for WooCommerce digital download prints
- use vendor address instead of store main address for shipping and taxes calculation
- where does $checkout in form-checkout.php woocommerce come from? [closed]
- woocommerce add button underneath order details
- Get $order in wp_head
- Update WooCommerce stock status with SQL query if stock value is greater than 0
- How to find which last line executed in wordpress?
- How to trace errors in debug.log for WooCommerce 3.0?
- Auto set Woocommerce product ID as SKU on save
- I want to show always 4 category boxes everytime in woocommerce
- woocommerce cart related issue cart not deleted
- WooCommerce – Hide price and add to cart button
- Send a different “thank you” email based on payment method
- Delete product image using WooCommerce API?
- Empty Cart on just mobile and Microsoft edge browser
- Possible to have multiple Authorize.net accounts on the same site?
- Allow HTML in product attributes for WooCommerce
- How to add a special Woocommerce “Buy Now” button?
- WP All import sale price 0 [closed]
- WooCommerce database upgrade behaviour
- How to neutralize a parent theme php template?
- creating number of database entries based on users numerical input
- Import download attachment from woocommerce product
- Duplicate post/product permalinks. (Link is temporary)
- Add an extra column to /my-account/subscriptions/ WooCommerce page
- Understanding WooCommerce Build-In Geolocation/ Geo_IP classes
- Same WooComerce shop for different WP sites?
- Custom Shipping Method: need non-instance settings and non-global settings
- Restrict the shop_manager role to the WooCommerce Orders Page
- How to disable click thumbnail product on archives product [closed]
- Woocommerce 404 after chang default language
- When creating a new order (on the dashboard) how can I get the ID of the selected customer
- Setup WooCommerce to properly handle inventory with variable product?
- Why does have_comments return false but get_comments return array of commemts?
- WooCommerce: I Need to hide my page title/header (including menu) from all the WooCommerce related product pages, such as category and keyword pages
- How to add another ordercomments field to woocommerce checkout
- Select Child Attributes Based on Parent [closed]
- How to dublicate WC Product title to shortdescription field? [closed]
- Add Additional 3 buttons next to “Add to cart” button in woocommerce product page
- How do I remove the recurring total from thank you for your order email?
- Woocommerce product and category in url [closed]
- Display product categories + child-categories on a single product page
- I want to Display custom woocomerce meta box in orders list