• Resolved kim.oj

    (@kimoj)


    Hi
    I have some trouble changing the text on the “cheackout” and “show cart” buttons.

    Is there anyone how can help me with a good funktion to add?

    This is the code I already running:

    add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );    // 2.1 +
    function woo_custom_cart_button_text() {
    	return __( 'L?gg till f?rfr?gningslistan', 'woocommerce' );
    }
    
    add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' );    // 2.1 +
    function woo_archive_custom_cart_button_text() {
    	return __( 'L?gg till f?rfr?gningslistan', 'woocommerce' );
    }
    
    add_filter( 'woocommerce_order_button_text', create_function( '', 'return "Skicka f?rfr?gning";' ) );
    
    add_filter('woocommerce_product_view_cart_text', 'woo_archive_custom_cart_button_text');
    function add_wpmenucart_view_cart () {
    	return __( 'Skicka f?rfr?gning', 'woocommerce' );
    }

    https://www.ads-software.com/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change text in WooCommerce Shop Widget’ is closed to new replies.