Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Customize "Link expired"-message
Tagged: customize, Download Manager, estore, multilingual, secure download manager text, Translation
- This topic has 10 replies, 5 voices, and was last updated 5 years, 9 months ago by wzp.
-
AuthorPosts
-
September 13, 2011 at 5:22 am #4301blatternetMember
Two questions:
1. When a link expired there’s a blank page with the message “Link Expired!”. Can I change/translate this message?
2. Is there a way to redirect a customer to a specific page when a link expired? On this page I could explain more details what he can do now.
September 13, 2011 at 1:39 pm #36560wzpModeratorIf you are brave enough, you can edit the download.php file. It is hard coded there, near the beginning, because when the buyer clicks on an encrypted link, the WordPress environment is not loaded. Once you find the message in the file, you can customize it the way you want.
September 14, 2011 at 8:45 am #36561blatternetMemberI’m very brave.
Thank for the help. I understand that the WordPress environment ist not loaded and it’s difficult to redirect the user to a specific page. But perhaps it’s something for a future release.
September 14, 2011 at 10:42 am #36562wzpModeratorI’ve given it some thought, already. It’s on the wish list
September 20, 2011 at 2:21 pm #36563wzpModeratorAs of eStore version 5.9.8, you have the ability to easily customize or localize all of the error messages used in the download validation scripts: download.php and custom_download.php
All message strings are located near the top of each file.
Error messages are now presented to the buyer as “Windows 8 style” blue screens.
If you have previously “customized” the download script location, using custom_download.php then you must remember to manually update your copy of the custom script.
July 2, 2012 at 2:28 pm #36564catohansenMemberYou have info for adding new language so i can have Norwegian there to ?
I found the languaga files and can translate but how does the webpage find it ?
Thank you
July 2, 2012 at 3:08 pm #36565wzpModeratoreStore has two operational environments; one that operates within the WordPress environment, and one that operates outside the WordPress environment.
To translate the part that operates within the WordPress environment, see:
https://support.tipsandtricks-hq.com/forums/topic/plugin-language-translation
To translate the part which operates outside the WordPress environment, follow the directions posted 2 messages back in this thread, regarding modification of the download.php and custom_download.php files.
July 2, 2012 at 3:46 pm #36566montecristoMemberHave you a solution for a multilingual website ?
July 2, 2012 at 4:42 pm #36567wzpModeratorHowever, the download manager error messages can only be in one language, because it operates outside the WordPress environment. And there should only be rare occasions that users would see these particular error messages. Your normal users who paid you correctly and is downloading the item will never see these error messages.
March 15, 2019 at 11:29 am #36568hParticipantI have read this thread and searched the download.php file and the custom_download.php file for the following text:
START TEXT
The secure download manager ran into a problem that it couldn’t handle, and is unable to process your download request.
The problem was due to the following reason:
The download link (see browser address bar) has been used too many times. If you think this reason is in error, please contact the site administrator.
END TEXT
But without success. The custom_download.php file that I have located is in public_html/wp-content/plugins/wp-cart-for-digital-products/view. The download.php file that I have located is in public_html/wp-content/plugins/wp-cart-for-digital-products/.
I would like to change the error message text to a different language. If the text is not located in these files, where are they located?
Best regards,
H
March 15, 2019 at 8:16 pm #36569 -
AuthorPosts
- You must be logged in to reply to this topic.