I need help, does anyone know how to show the download buttons for digital products like this, in my case it appears with a long name, I want to change it to a simple text that says DOWNLOAD
2
You will have to override the order/order-downloads Woocommerce template.
order/order-downloads
If you’re not sure how to do so, check out the official Woocommerce guide on it.
Try this code, put in your child-theme > function.php:
add_filter( 'woocommerce_customer_get_downloadable_products', 'sss_change_download_button_name', 9999, 1 ); function sss_change_download_button_name( $downloads ) { if($downloads){ foreach($downloads as $key => $download){ $downloads[$key]['download_name'] = 'DOWNLOAD'; } } return $downloads; }
Click here to cancel reply.
2
Answers
You will have to override the
order/order-downloads
Woocommerce template.If you’re not sure how to do so, check out the official Woocommerce guide on it.
Try this code, put in your child-theme > function.php: