WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Poor Guys Swiss Knife
[resolved] Add to cart text not changing (6 posts)

  1. Chirag Vora
    Member
    Posted 6 months ago #

    Add to cart text is not changing with WooCommerce 2.1

    https://wordpress.org/plugins/woocommerce-poor-guys-swiss-knife/

  2. thewpguy
    Member
    Posted 6 months ago #

    Same thing is happeing for me also.

    Unable to customise the 'Add to cart' text.

    If anyone knows a quick workaround that you be great.

  3. thewpguy
    Member
    Posted 6 months ago #

    Found the solution here:
    http://docs.woothemes.com/document/change-add-to-cart-button-text/

    This is the code to add to functions.php file for single product and a listing of products or related products.

    add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );    // 2.1 +
    add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_cart_button_text' );    // 2.1 +
    
    function woo_custom_cart_button_text() {
    
            return __( 'New button text goes here', 'woocommerce' );
    
    }
  4. ulihake
    Member
    Plugin Author

    Posted 6 months ago #

    Thanks for your feedback.

    Seems to be related with WooCommerce 2.1.x. I will check this and provide an update.

    uh

  5. Chirag Vora
    Member
    Posted 6 months ago #

    Thank you!

  6. ulihake
    Member
    Plugin Author

    Posted 6 months ago #

    WCPGSK 1.8.0 is out... and fixes the button labels for WooCommerce 2.1.2 with some improvements.

    uh

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.