WordPress Development Asked by markm on November 19, 2021
Woocommerce | I want to the button ‘Add to Cart’ on the (all) product-page changed by just ‘open product’ button.
I know people can click on the image or on the title but I also want a need button (instead of add to cart) to open the product.
Can you guys help me out?
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' );
Answered by Pipo on November 19, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP