WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. samisoam88
    Member
    Posted 8 months 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.

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

  2. samisoam88
    Member
    Posted 8 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.