Support ForumChange add to cart with view product – Support Forum https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/feed/ Wed, 25 Nov 2026 09:41:35 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/#post-2020 <![CDATA[Change add to cart with view product]]> https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/#post-2020 Thu, 20 Mar 2014 13:22:50 +0000 WAPPUK Is it possible to change the add to cart button, to view product, on any other page than the product page, eg home and sub cat pages, thanks

]]>
https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/#post-2025 <![CDATA[Reply To: Change add to cart with view product]]> https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/#post-2025 Fri, 21 Mar 2014 06:26:54 +0000 IshYoBoy Hi,

Yes, But you will have to use some of the WooCommerce hooks to alter the code which is being output. You can explore the WooCommerce templates to track when it is being output and see if there are any hooks or filters to hook into it. Here is a list of most woocommerce hooks: https://docs.woothemes.com/document/hooks/

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/#post-2033 <![CDATA[Reply To: Change add to cart with view product]]> https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/#post-2033 Fri, 21 Mar 2014 13:28:35 +0000 WAPPUK Ok do you know which one I will need to use, and which one I need to replace?

]]>
https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/#post-2037 <![CDATA[Reply To: Change add to cart with view product]]> https://support.ishyoboy.com/forums/topic/change-add-to-cart-with-view-product/#post-2037 Mon, 24 Mar 2014 05:59:16 +0000 IshYoBoy Sorry,

Can’t provide the exact code as it needs digging but you could have a look at the following filters “woocommerce_product_add_to_cart_url” and “woocommerce_product_single_add_to_cart_text”.

This is how they are defined:

So you might use the filters to change the url and text and check the information inside “$this” variable to see if there is something useful in there for you.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>