WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Change cart button text to basket (3 posts)

  1. rikardo85
    Member
    Posted 1 year ago #

    Hello,

    I have added below code supplied from the codex from the woothemes website

    add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' );
    function woo_custom_cart_button_text() {
    return __( 'My Button Text', 'woocommerce' );
    }

    This works fine on the product pages but does not change the text on widgets and the basket (cart) page.

    Does anyone know who to change the text in the widgets and basket page?

    Any help much appreciated.

    Thanks

    http://wordpress.org/extend/plugins/woocommerce/

  2. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    There are two filters you need to change as described here; http://docs.woothemes.com/document/change-add-to-cart-button-text/

  3. rikardo85
    Member
    Posted 1 year ago #

    I have added the two filters to the functions.php file and uploaded.

    The site does not appear.

    Any ideas?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic