MrBaseball34 Posted August 27, 2010 Share Posted August 27, 2010 Can somebody give me some ideas as to how I may prevent this scenario:User1 comes into my shop. Clicks on Product 10.User2 comes into my shop. Clicks on Product 10.User1 orders Product 10, goes to check out, finalizes purchase, downloadable file is being generated whenUsers orders Product 10, goes to check out, finalizes purchase, generation process begins again while othergeneration process is still in progress...I know it is not too likely but it can, and most likely will happen one day. I'd like to come up with some way to avoid this, if possible. Here is one solution I can think ofI store my file that is generated with a filename that prefixes the ps_product_download.physically_filename with the user_id, then modify the email that is sent out to point to the unique one per user? I will also have to modify the OrderHistory page to have the new filename link?Are there any other solutions to this problem? Link to comment Share on other sites More sharing options...
Recommended Posts