If you want others to download and do not need them to proceed to checkout, simply put a download link directly in the product description.
Thanks splashingpixels – that’s a good solution.
One thing I was hoping for, is for the “Add to Cart” button not to be visible – both on the All products page, and on the single product page. Is there a way of enabling that?
For that you can just comment it out in the template files. Copy the template file in question from the WooCommerce plugin and put them inside a folder “woocommerce” and within your theme folder. Of course keep the same folder structure as where you copied it from. Then modify the template to comment the add to cart button out.
The template files should be in the single-product/add-to-cart folder.
Thanks so much for the advice – I’m afraid I’m somewhat of a novice with php, and this solution falls a couple feet beyond of my knowledge boundary. So rather than ask you (or anyone) to explain in simpler terms, I’ll just live with it until I find some time to figure it out. Thanks again, very much appreciated.
VGM
@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..
Wooooohooooo!
Brilliant @candeed, that’s just what I was looking for!
Many thanks.
My pleasure, @vangillmedia.. 🙂
(by the way, please consider to mark this thread as ‘resolved’)
Hi,
if i want to keep some products FREE and some PREMIUM, which php code i should use? please!
Thanks in advance !!