Guest Posted April 1, 2003 Share Posted April 1, 2003 I have a need to deliver a particular weblink to a customer once the product is paid for. I see something regarding download file in product attributes. How would I setup an item such that once paid for the order confirmation contains the "download link"? Thank you in advance! Link to comment Share on other sites More sharing options...
Ajeh Posted April 1, 2003 Share Posted April 1, 2003 That is automatic in the oscommerce checkout and in the account history info. You need to turn on downloads in the Admin. If you need to determin immediate vs delayed downloads based on payment method, look at the Downloads Controller v5.3 which is for MS1 or any snapshot that uses the orders_status in the Admin payment modules. Link to comment Share on other sites More sharing options...
Guest Posted April 1, 2003 Share Posted April 1, 2003 Hmmmm..... :o This is not working. I have 2.2Milestone working (Linda thank you for the help yesterday) I have an item in products In product attributes I have a weblink in the filename field. I have download turned on. I create an order. I take it from pending to in process to delivered Each time I review the order history and do not see a link. What am I doing wrong? (I wonder if I have something not set properly in the product attributes section, what should I have in there?) Thank you again! :sleepy: Link to comment Share on other sites More sharing options...
Ajeh Posted April 1, 2003 Share Posted April 1, 2003 Check that you have Search Engine Friendly URLs turned off. Check that in your /includes/configure.php you are not using $DOCUMENT_ROOT references. Check that the filename is written case sensative ... Check that the file is actually uploaded to /download Link to comment Share on other sites More sharing options...
Guest Posted April 1, 2003 Share Posted April 1, 2003 OK! I actually misspoke (or is misposted?) :oops: What I really want to do is this. I have a web form (url) that I want to present to the customer as "the product". It is a form to setup a self-replicating website. They are actually purchasing a website, the link is the setup form. So there is nothing to download. However I do want to present this weblink once the product is "paid for". How might I do this? Link to comment Share on other sites More sharing options...
timlitw Posted April 1, 2003 Share Posted April 1, 2003 in downloads put a file named comething like newsitesetup.php in it put a referrer check to make sure they only link to it from the checkout page, then either put a redirect to the form you want them to fill out or put the form directly in that file. Link to comment Share on other sites More sharing options...
Guest Posted April 1, 2003 Share Posted April 1, 2003 In the prior reply Timlitw says: in downloads put a file named comething like newsitesetup.php in it put a referrer check to make sure they only link to it from the checkout page, then either put a redirect to the form you want them to fill out or put the form directly in that file. How do we do a reeferrer check? What would the code for this look like? Do you have a sample? Sorry I am rather new to PHP. Although the support and this product are AWSOME!!!!!!! Thank you! Link to comment Share on other sites More sharing options...
timlitw Posted April 1, 2003 Share Posted April 1, 2003 save this code in download/download.php edit the $purchase_page and the $fail_url NOTE: this does not take any OSCommerce standards into account. <?php // set this to your checkout page $purchase_page = "http://store.acscomputersks.com/download/test.php"; // set this to the page you want unwanted attempts to redirect to $fail_url = "http://store.acscomputersks.com/"; // no need to change anything below this line global $HTTP_REFERER; if ($HTTP_REFERER == $purchase_page) { echo "You came from "; echo $HTTP_REFERER; } else { header("Location: $fail_url"); } ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.