I am using Magento to build an eBooks site. For the release, we plan to have a number of free downloadable books. We were hoping that it would be possible to use the normal Magento 'catalog' functionality to add categories with products underneath. However, since these are free downloadable products, it doesn't really make sense to send users through the checkout when they try to download.
Does anyone know of a way to create a free downloadable product which bypasses the checkout altogether? I have noticed that there is a 'free sample' option for downloadable products, but I would prefer not to use this if I can as I plan to use this field for its intended purpose when I add paid products.
[EDIT] I have noticed that some of you have voted this question down for 'lack of question clarity'. For clarity, I want:
- to know if it is possible to create a downloadable product in Magento which doesn't require users to go through the usual checkout process (since it is free)
- and which is not the 'Free Sample' field of a downloadable product
Unfortunately I don't think I can ask this any more eloquently. [/EDIT]
This code will allow logged-in customers to "place an order" for a Free, Virtual product while bypassing checkout and redirect them straight to the My Downloads section of their account.
Add the following line to your
catalog/product/list.phtmlin the spot you want it.
Then create a new module with a
controllers/CheckoutController.phpcontaining this code:
You'll need to handle the Exceptions a little better, but that should be functionally correct.