bedava hesaplar nulled scripts mod apk indir youtube mp3 dönüştürücü

Can't change 'add to cart' button name on a single product page

Hi and cześć!

I have a problem with changing name of the 'add to cart" button name.

I'm trying to use several codes like this one:

add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );  

function woocommerce_custom_product_add_to_cart_text() {
    return __( 'Buy Now', 'woocommerce' );
}

But nothing change. I'm using newest version on WooCommerce and BeTheme. Writing on your support page, because the code should works Woo. Not working with BeTheme, so mayme you have any idea why?

There is no more codes for add to cart button which could make a conflict.

Thanks in advance.

Comments

  • edited May 23

    Also had the same problem with another line (simply not working):

    function webinsider_wp_wc_add_to_cart_redirect( $url ) {
    	return wc_get_checkout_url();
    }
    add_filter( 'woocommerce_add_to_cart_redirect', 'webinsider_wp_wc_add_to_cart_redirect' );
    


  • Hello,

    The WooCommerce language string lines are based on actual, default website language, if you will set it for example to German, it will change to that language.

    Sorry, but our support does not include help with the theme/wordpress code modifications.

    thanks

Sign In or Register to comment.
bedava hesaplar nulled scripts mod apk indir youtube mp3 dönüştürücü