WooCommerce - excelling eCommerce
[resolved] Disabling Add to cart button on the generated shortcode on WordPress (2 posts)

  1. samisoam88
    Posted 1 year ago #

    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.


  2. samisoam88
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.