Change the button text after ajax add to cart?
-
Currently when you click ADD TO CART the ajax button changes to CHECKOUT and links to the checkout url. I’d like to edit this but I don’t know what to tap into. I found the necessary code in the
includes/template-functions.php
file on line 182:echo '<a href="' . esc_url( edd_get_checkout_uri() ) . '" class="edd_go_to_checkout ' . esc_attr( $class ) . '" ' . $checkout_display . '>' . __( 'Checkout', 'easy-digital-downloads' ) . '</a>';
Can I tap into this and change it using my functions.php file? I just want to change
'Checkout'
to'In Cart'
I can’t use the gettext filter because it’ll change the text on my widget Checkout button as well.
- The topic ‘Change the button text after ajax add to cart?’ is closed to new replies.