Categorías

Cambia el texto del botón carrito

Categoria:

Wordpress, Woocommerce

Snippet:

// To change add to cart text on single product page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); 
function woocommerce_custom_single_add_to_cart_text() {
    return __( 'Comprar Ahora', 'woocommerce' ); 
}

// To change add to cart text on product archives(Collection) page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );  
function woocommerce_custom_product_add_to_cart_text() {
    return __( 'Comprar Ahora', 'woocommerce' );
}


Versiones:



Descripción:

Cambia el texto de los botones "Add to cart" o "añadir al carrito"



Code Snippets