• Resolved Sho-Down

    (@sho-down)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Pippin Williamson

    (@mordauk)

    You can change it from the Misc settings screen. There is an option for it.

    Thread Starter Sho-Down

    (@sho-down)

    Not sure that’s what I need Pippin, after you click the add to cart button, the ADD TO CART text on the button changes to CHECKOUT…I’m trying to change the CHECKOUT text to something else.

    I’m looking under Misc/Button Text settings and tried putting something in the “Complete Purchase Text” box but that’s not what it’s for I don’t believe.

    Plugin Contributor Pippin Williamson

    (@mordauk)

    Ah, sorry I told you wrong.

    Out of the box there is not a way to change that text, sorry.

    Thread Starter Sho-Down

    (@sho-down)

    Ah ok, thanks. Maybe in the future add a filter to tap into so we can change that text? That’d be great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change the button text after ajax add to cart?’ is closed to new replies.