lia_green Posted November 30, 2011 Posted November 30, 2011 Hi - I have some free downloads on website - would like people to create an account before downloading. However, when trying a test checkout, if the amount shows "0.00" the message is "order total is invalid" in it loops back to the shopping cart. I would like the customer to checkout and be directed to the download link. Is that possible if there are no charges? How would this be done? thanks!
lia_green Posted November 30, 2011 Author Posted November 30, 2011 They need to create an account and go through checkout to get the free download link - doesn't appear that the free downloads addon solves that problem. I have a mix of free and priced downloads, if the customer only has free downloads in their cart, they should be able to hit checkout and get a link to the downloads... is that possible?
♥14steve14 Posted November 30, 2011 Posted November 30, 2011 If you do not need your customers to create an account why not just put a direct link to the file in the product description. REMEMBER BACKUP, BACKUP AND BACKUP
Guest Posted November 30, 2011 Posted November 30, 2011 They need to create an account and go through checkout to get the free download link - doesn't appear that the free downloads addon solves that problem. I have a mix of free and priced downloads, if the customer only has free downloads in their cart, they should be able to hit checkout and get a link to the downloads... is that possible? Just about anything is possible, if you know how to change to code to do what you want. But, using what is already available is always quicker. As Steve pointed out, why not just offer a download link on the product info page ? Chris
lia_green Posted December 1, 2011 Author Posted December 1, 2011 As Steve pointed out, why not just offer a download link on the product info page ? Chris They need to create an account before the download. Installed the add on and the checkout process is working, but there is no link to download. Order status says "pending" in the order information. Should they get a link to download the files? thanks
onlinemangr Posted December 3, 2012 Posted December 3, 2012 @lia_green Any updates/solutions on this query? thanks
Guest Posted December 3, 2012 Posted December 3, 2012 @@onlinemangr Look at the second posting in this thread or look at your other postings for the same replies. Chris ps. cross posting is against forum policies
Jack_mcs Posted December 4, 2012 Posted December 4, 2012 If you just want them to be logged in before they can download the file, create a page with a link to that download and add the code that requires a login in that file (see any of the checkout pages for it). If they must complete an order before the link is available, add the link to the download on the checkout success page since they will be logged in at that point. If checkout is required but no other purchase needed (seems an extra bother to your customers to have this requirement besides serving no purpose), then you can add code to the payment class to load the COD or Check/Money Order module if the cart is empty (the module can be copied and renamed) so that the $0 order can complete. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
♥14steve14 Posted December 4, 2012 Posted December 4, 2012 My 2.2 site gives away free downloads. Customers are required to login to get the items. Postage and payments are bypassed. What i did. Ensure that prices and weights are set to zero when creating product. Add the download via the product attributes page as you would any download ensuring that the filename includes the file extension type. Add super download addon, as this automates the process and customers get the download as soon as the process is complete. I also added an addon that bypasses the payment and shipping pages if the price is zero and the weight is zero, as sometimes there was a reported error on the checkout page but I cannot remember exactly what it was. Customers can now get the free download and I hopefully get to email them with offers and such like. REMEMBER BACKUP, BACKUP AND BACKUP
jaysh4922 Posted December 4, 2012 Posted December 4, 2012 Ok, so I tried adding this to ajax.functions.php right before it submits to the gateway: if($total <= 0){ $transaction_url_with_sessionid = add_query_arg('sessionid', $session_id, get_option('transact_url')); wp_redirect($transaction_url_with_sessionid); } That didn’t seem to do anything. I’m a little stumped. I’d like to bypass the gateway if the total is zero, set the logs to payment accepted and redirect to the transaction results page.
♥14steve14 Posted December 4, 2012 Posted December 4, 2012 Have you tried searcing the addons area. I found this http://addons.oscommerce.com/info/8080 There is no need to try and reinvent the wheel. REMEMBER BACKUP, BACKUP AND BACKUP
onlinemangr Posted February 5, 2013 Posted February 5, 2013 @@DunWeb I still dont understand -- sorry can you clarify. 1) the contribution you suggest (post 2) -- just adds a LINK to download. Whether a person is logged in or NOT. This is not what I need. 2) How do you circumvent payment and allow a user to download instead. So they should only be shown a link if they put in their personal details. thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.