Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

ewcarne
Starting Member

19 Posts

Pre-sales questions only
(More Details...)

Posted - 10/27/2021 :  09:33:55  
I have a free download perfect 5th tuning forks. Prior to the upgrad to a templatee, it worked fine. Now a customer gets this message
"
If you are trying to download the products you have just purchased, then I am afraid you have received this page in error. Firstly please accept our sincerest apologies. Please email us at orders@soundwellness.com with the details of your order, and we will send any products you purchased by email.

Please Click Here to try the download again."

Has something changed? The file D101.zip is sitting in the downloads folder, and I was able to download from C-Panel, and play it, so the file is OK.


Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 10/27/2021 :  10:54:25  
Hi Edward,

It seems like the location of the download directory is in the web root, I can download that file directly through my browser

Can you let us know the entries you have in your vsadmin/includes.php file please, it should be something like this below and we'll go from there

$digidownloads=TRUE;
$digidownloadpattern="/home/downloads/%pid%.zip";
$digidownloadsecret="fkkverokgpowk2jgkkf";
$digidownloadwarn=TRUE;
$digidownloadmethod="filesystem";



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

ewcarne
Starting Member

19 Posts

Pre-sales questions only
(More Details...)

Posted - 10/27/2021 :  11:38:55  
I have all set as suggested except for:
$digidownloadpattern="/downloads/%pid%.zip";

the store is in a subdomain. And this has always worked in the past. The downloads folder is at the root of the sound wellness.com site.
I copied downloads so that it is also at the root of the swstore subdomain. Then I tried a purchase and same result.

That's when I put in the request for help

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 10/27/2021 :  11:56:25  
Hi Edward,
yes I noticed the store went to a sub domain from the wordpress site

I would imagine the path $digidownloadpattern="/downloads/%pid%.zip"; isn't correct, what do you get in your email message for the failed download? That should give you a clue as to what the path to the downloads directory should be set to.

Also, have you installed the latest digital download plugin as it has been upgraded recently.



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

ewcarne
Starting Member

19 Posts

Pre-sales questions only
(More Details...)

Posted - 10/27/2021 :  12:34:54  
The message is :Failed to find: /downloads/D101.zip

Should I try the full url https://...

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 10/28/2021 :  01:13:40  
Hi Edward,
I think your best way forward would be to follow the instructions here to find the correct path - https://www.ecommercetemplates.com/help/digital-download.asp#php br
quote:
$digidownloadmethod="filesystem";

To use the operating systems filesystem set the above parameter. This will allow you to specify for instance files outside your web root for instance . . .
/your/path/to/yourfile.zip

To get the path to your downloads folder make a file called t.php in a text editor with the following code

<html><body><?php
echo getcwd();
?></body></html>


I would also suggest you place your downloads directory outside root so it can't be browsed to. If you still struggle to sort this out click on my name and send me FTP details and I'll take a look for you






*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000