Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter makeonlineshops

    (@makeonlineshops)

    No solution ?

    Yes @makeonlineshops, you can change the add to cart text by using the following code in theme function.php file. You can change the button text according to product type.

    add_filter(“woocommerce_product_add_to_cart_text”,”woocommerce_product_add_to_cart_text”,10,2);
    function woocommerce_product_add_to_cart_text($text,$product){
    if($product->get_type()==”simple”){
    $text = __( ‘Add to cart’, ‘woocommerce’ );
    }elseif($product->get_type()==”variable”){
    $text = __( ‘Select options’, ‘woocommerce’ );
    }
    return $text;
    }

    • This reply was modified 7 years, 6 months ago by the_wpexperts.
    Thread Starter makeonlineshops

    (@makeonlineshops)

    Thank you, but do you mena that I can display a bigger ADD TO CARD button ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to change ADD TO CART button for a bigger picture or text ?’ is closed to new replies.