Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3998832
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:34:37+00:00 2026-05-20T07:34:37+00:00

I am using Magento to build an eBooks site. For the release, we plan

  • 0

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:

  1. 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)
  2. 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]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:34:38+00:00Added an answer on May 20, 2026 at 7:34 am

    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.phtml in the spot you want it.

    <?php if($_product->isVirtual() && $_product->getFinalPrice()==0) { ?>
                    <a href="/modulename/checkout/purchase/id/<?php echo $_product->getId()?>"><?php echo $this->__('Download and Install') ?></a>
                <?php } ?>
    

    Then create a new module with a controllers/CheckoutController.php containing this code:

    public function purchaseAction() {
    if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
            $this->_redirectUrl(Mage::getBaseUrl().'customer/account');
            return;
     }
     $request = $this->getRequest();
     $id = $request->getParam('id');
     $product = Mage::getModel('catalog/product')
                    ->load($id)
                    ->setStoreId(Mage::app()->getStore()->getId());
     if(!($product->getIsVirtual() && $product->getFinalPrice() == 0)){
         Mage::getSingleton('checkout/session')->addError($this->__('Method only available for Free Downloadable Items'));
         return $this;
     }
     $onepage = Mage::getSingleton('checkout/type_onepage');
     /* @var $onepage Mage_Checkout_Model_Type_Onepage */
     try{
         $quote = $onepage->getQuote();
         /* @var $quote Mage_Sales_Model_Quote */
         $quote->addProduct($product);
         Mage::getSingleton('checkout/session')->setCartWasUpdated(true);
         $onepage->initCheckout();
         $payment=array('method'=>'free');
         $onepage->savePayment($payment);   
         $onepage->saveOrder();
         $this->getResponse()->setRedirect('/downloadable/customer/products');
     }
     catch(Exception $e){
         $result = $e->getMessage();
         Mage::getSingleton('checkout/session')->addError($result);
     }
     }
    

    You’ll need to handle the Exceptions a little better, but that should be functionally correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Magento 1.5 and have around 33,450 products on my site. 32000
I using magento 1.6.1 I have only mobile number and name of the customers.
We are using Magento as our eCommerce platform. We have Oracle apps in which
i am using Magento 1.5.1.0 and the mPAY24 Payment Gateway Extension. I have an
I am using Magento eCommerce and I have modified my header.phtml via the Blank
I am using Magento and I'm trying to fix a small issue I have
I would like to update the template that generates the google sitemap in Magento
Background : I have built a tool that imports sales orders from Magento to
I'am using a built in Magento Filebrowser on my extension to magento. I have
I'm using Magento 1.7.0.1 just recently upgraded from 1.6.2.0 . I have the SCP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.