Support » Plugin: WooCommerce » Disabling Add to cart button on the generated shortcode on WordPress

  • Resolved samisoam88

    (@samisoam88)


    How do I disable the add to cart button that generates from the shortcodes to instead link to the post permalink? Like when I click on “Add to cart” it gives me a text “view cart”, but I want the link to go directly to its own post.

    http://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • samisoam88

    (@samisoam88)

    I found the answer to this, in case anyone wants to know, the function is in the add-to-cart.php file in woocommerce > templates > loop in line 55 where you can change the link attribute.

Viewing 1 replies (of 1 total)
  • The topic ‘Disabling Add to cart button on the generated shortcode on WordPress’ is closed to new replies.