Forum Replies Created
-
AuthorPosts
-
September 27, 2011 at 8:48 am in reply to: Hosting digital goods in a non-web-accessible directory #30174detoxMember
I solved the problem. The “download_manager_debug.log” was extremely helpful, and pointed out that WordPress is not installed at “/website.com/”, but at “/home/website/website.com/”.
What you said above regarding “what you see in your FTP file browser may not be the actuall file path” was correct!
Thanks! I’m definitely enjoying this product.
September 27, 2011 at 8:41 am in reply to: Hosting digital goods in a non-web-accessible directory #30173detoxMemberFollow-up … If I place a copy of the file in the public website folder and change the product’s “Digital Product URL” set to “http://www.website.com/filename.zip”, it serves the file correctly.
I just need to know how I can store the files outside of the public area, and which values I should be plugging into the product’s “Digital Product URL”.
September 27, 2011 at 8:35 am in reply to: Hosting digital goods in a non-web-accessible directory #30172detoxMemberI would like to store the actual files outside of the public HTTP area.
* When I log in using FTP, site is as “/website.com/”, one folder in from root.
* WordPress is installed there, and so the content is at “/website.com/wp-content”.
* I would like to store the files at “/private_files/” outside of the public area.
* The actual path to one a file might be “/private_files/filename.zip”.
I have configured eStore to point to a custom download folder “http://www.website.com/download/”, and when I use ‘eStore’ > ‘Admin Functions’ > ‘Generate an Encrypted Download link for a Product’, a valid link appears to have been generated. Clicking that link results in: “Download file cannot be found. Please let us know. Thank you!”.
In the Product settings, under “Digital Content Details”, I have “Downloadable” checked, and “Digital Product URL” set to “/private_files/filename.zip”, which is the absolute path.
Finally, under ‘eStore’ > ‘Settings’ > ‘Addon Settings’ > ‘WP eStore Download Manager Related’, I have “Automatic URL Conversion Preference” set to “(Default) Absolute” and “Download Method” set to “(Default) Method 1, Fopen-8K”.
I am unsure if I should be using the absolute file path in the Product settings, or if I should chose a different value for the “Automatic URL Conversion Method” in ‘Addon Settings’.
detoxMemberThanks for the quick response! That did the trick!
detoxMember@admin – I have seen a number of posts that state you can tweak the post processing scripts to run a custom license key generator, but have found no instructions on how to actually do that.
Let’s assume that I have a custom php function that returns a string that is the key (e.g., “XXXX-XXXX-XXXX”): generate_custom_license_key($name, $email, $transactionID);
Internally, the function queries a database for an existing key matching that parameters, and if one is not found, it generates the key. Regardless, it does return the license key as a string.
I would like to display this license key in both the email that gets sent to the buyer, as well as on the “thank you” page.
Where exactly would I call my script to make this happen? Should I be modifying paypal.php? eStore_process_payment_data.php?
-
AuthorPosts