Comments 4Nijland Wouter started the conversationNovember 7, 2024 at 9:02pmHello,Can I change the standard CTA-button of the wishlist for a custom code?What I mean is to change the standard CTA-button with the text "koop bij bever" on the following page:Verlanglijst - Winter-GeestKind regards,Wouter Nijland 1,238Dustin replied3 weeks ago on November 11, 2024 at 7:34amHi Nijiland, This button text comes from WooCommerce. Please add the custom code below to change it. (How to add custom code? ↗): add_filter( 'woocommerce_product_add_to_cart_text', function ( $text, $product ) { if ( $product->is_purchasable() && $product->is_in_stock() ) { if ( $product->is_type( 'variable' ) ) { $text = 'Select options'; } else { $text = 'Add to cart'; } } else { $text = 'Read more'; } return $text; }, 99, 2 ); You can change the text of the three states above as you want.Best regards,Dustin 4Nijland Wouter replied3 weeks ago on November 12, 2024 at 2:46pmProblem solved Dustin, big thanks!1 Like Sign in to reply ...
Hello,
Can I change the standard CTA-button of the wishlist for a custom code?
What I mean is to change the standard CTA-button with the text "koop bij bever" on the following page:
Verlanglijst - Winter-Geest
Kind regards,
Wouter Nijland
Hi Nijiland,
This button text comes from WooCommerce. Please add the custom code below to change it. (How to add custom code? ↗):
You can change the text of the three states above as you want.
Best regards,
Dustin
Problem solved Dustin, big thanks!