-
AuthorPosts
-
February 17, 2020 at 11:12 am #36014
Is there a way I can change the display name for file downloads. The are currently media.some number, is it possible to change that? Since it is just for the download link, can i just be chang it to ‘download’?
February 18, 2020 at 3:40 pm #36025I think you mean the name of the downloaded file itself? I am talking about the file name displayed on the website account download page, e.g. ef7e28.media. I’d like to change this to just ‘download’ but it still retain the correct link to download the ef7e28.media file. It is simply tidier and clean fro the customer to see.
Cheers
February 19, 2020 at 1:14 am #36027Hi Greg, .. it seems there is a folder beside your symbio_media folder named ssdl or equal. maybe it could be a problem to have one name for more than one files.
February 19, 2020 at 2:52 pm #36029I’m still not sure what you understand to be my question/request. Probably because I am not explaining myself properly 🙂
I’m not wanting to change the actual file name at all.
What I am wanting to do is change the link name to the file,


Cheers
February 19, 2020 at 3:03 pm #36030OK found it and have changed it. If anyone else is interested
wp-content/plugins/woocommerce/templates/order/order-downloads.php
Change this (line 53)
echo '<a href="' . esc_url( $download['download_url'] ) . '" class="woocommerce-MyAccount-downloads-file button alt">' . esc_html( $download['download_name'] ) . '</a>';to this and then save it in your (child) theme woocommerce/order/ folder with the same name
echo '<a href="' . esc_url( $download['download_url'] ) . '" class="woocommerce-MyAccount-downloads-file button alt">Download</a>';Now the buttons say Download

Cheers
February 19, 2020 at 5:10 pm #36035 -
AuthorPosts
You must be logged in to reply to this topic.

