Posted - 09/29/2020 : 08:24:49
Hi John, First of all zip up your pdf file and make sure the zip file is the same name as your product reference for that product. So if your product reference is test the zip file in your etickets folder must be named test.zip and enter A in the download field for that product Then add the following to your includes.php file $digidownloadwarn=TRUE; $digidownloadpattern="\home\etickets\%pid%.zip"; // the path will be something like this - read below$digidownloadmethod="filesystem"; $digidownloadsecret="fe2ls2pl2jJbIONowk234ksdf"; // replacing 'fe2ls2pl2jJbIONowk234ksdf' with your own random characters $digidownloademail="Your products can be downloaded for the next 3 days by going to the URL%nl%http://www.ragandbone.ca/boxoffice/latedownload.php?ordid=%orderid%&pass=%password%%nl%Or alternatively, go to the URL%nl%http://www.ragandbone.ca/boxoffice/latedownload.php%nl%. . . and enter the order ID %orderid% and password %password%%nl%%nl%"; $digidownloaddays=10; //Setting this will make downloads available for the number of days specified. The default is 3 days and the example above would set it to 10 Open the file thanks.php in HTML / code view and search for the line . . . <?php include "vsadmin/inc/incthanks.php" ?> . . . and on the line after that add . . . <?php include "vsadmin/inc/digidownload.php" ?> To get the path to your etickets directory which needs to be outside root make a file called t.php in a text editor with the following code <html><body><?php echo getcwd(); ?></body></html> upload that to your web root and open it in your browser. That will give you the path to the web root from which you should be able to work out the path to your etickets folder you've set up. Paste the correct path into $digidownloadpattern That should be it really, if the path is correct and your zip file matched the product reference you should be able to download the file from the thanks.php page  * Database Migrations and Conversions* * ASP to PHP Cart Conversions**Contact Us**Buy The PHP Capture Card Plugin**Rate Our Services/View Our Feedback*
Edited by - Phil on 09/29/2020 08:29:02
|