Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

candeed on "[Plugin: WooCommerce - excelling eCommerce] WooCommerce allow free download without Checkout?"

$
0
0

@VanGill Media

When adding a free product, treat your free product as 'external product'..
Then 'add to cart' button will dissapear,
and there will be an option to rename the button to any name as you like..
E.G. You can name it 'download' and then link the button to the free file.

======================================

Anyway, if you want to change ALL 'add to cart' buttons on entire site..
just open function.php in your theme folder.. add this text:

add_filter('single_add_to_cart_text', 'woo_custom_cart_button_text');

function woo_custom_cart_button_text() {
return __('My Custom Button Text', 'woocommerce');
}

before this line :

/*-----------------------------------------------------------------------------------*/
/* Don't add any code below here or the sky will fall down */

Hope it help..


Viewing all articles
Browse latest Browse all 104029

Trending Articles