Title: Change Add to Cart Button Function
Last modified: January 24, 2019

---

# Change Add to Cart Button Function

 *  Resolved [shizlist](https://wordpress.org/support/users/dnacannon/)
 * (@dnacannon)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/change-add-to-cart-button-function/)
 * Two questions.
 * 1: Is there a way to get the “add to cart” button on the shop/category pages 
   to lead to the product page, while keeping the function of the button on the 
   product page the same?
 * For instance, if somebody clicks the “Add to Cart” button on a category page (
   which I’ve changed to simply say “Check This Out”), I want it to take them to
   the product page for that product.
 * If somebody then clicks the button on the product page, I want it to add the 
   item to the cart (for buyable products) or lead to an affiliate link (for external
   products).
 * Is there an easy way to do this? Or is this considered an advanced customization
   that’ll probably require hiring somebody?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchange-add-to-cart-button-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Phil](https://wordpress.org/support/users/fullysupportedphil/)
 * (@fullysupportedphil)
 * Automattic Happiness Engineer
 * [7 years, 4 months ago](https://wordpress.org/support/topic/change-add-to-cart-button-function/#post-11128243)
 * [@dnacannon](https://wordpress.org/support/users/dnacannon/) in theory, yes this
   would be possible. However, it would require that you write some custom code 
   for your site. Our team isn’t able to offer support for custom coding. Hoewver,
   if you are comfortable writing code yourself I suggest joining an advance WooCommerce
   developers group such as WooCommerce Developers Slack:
    [https://woocommercecommunity.slack.com/](https://woocommercecommunity.slack.com/)
 * If you don’t already have an account, you can sign up at the bottom of the following
   page:[https://woocommerce.com/develop-woocommerce/](https://woocommerce.com/develop-woocommerce/)
 * Otherwise, if you need a developer to write this code for you I suggest checking
   sites such as [http://www.codeable.io](http://www.codeable.io) to find third-
   party developers.
 *  Thread Starter [shizlist](https://wordpress.org/support/users/dnacannon/)
 * (@dnacannon)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/change-add-to-cart-button-function/#post-11128444)
 * Thanks Phil. I’m not very code savvy, so I’m thinking hiring someone will be 
   the way to go. I’ve used codeable.io before and was very satisfied. Thanks for
   the reply.
 * Cheers
 *  [Phil](https://wordpress.org/support/users/fullysupportedphil/)
 * (@fullysupportedphil)
 * Automattic Happiness Engineer
 * [7 years, 4 months ago](https://wordpress.org/support/topic/change-add-to-cart-button-function/#post-11128461)
 * You’re welcome [@dnacannon](https://wordpress.org/support/users/dnacannon/) and
   best of luck with the design changes 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change Add to Cart Button Function’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [add to cart](https://wordpress.org/support/topic-tag/add-to-cart/)
 * [button](https://wordpress.org/support/topic-tag/button/)
 * [category](https://wordpress.org/support/topic-tag/category/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [product](https://wordpress.org/support/topic-tag/product/)

 * 3 replies
 * 2 participants
 * Last reply from: [Phil](https://wordpress.org/support/users/fullysupportedphil/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/change-add-to-cart-button-function/#post-11128461)
 * Status: resolved