Results 1 to 5 of 5

download controller

This is a discussion on download controller within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Is the download controller part of the latest MS-MAX version? If not, what does it do? How does oscomm know ...

      
  1. #1
    New Member
    Join Date
    Jan 2004
    Posts
    10
    Rep Power
    0


    Default download controller

    Is the download controller part of the latest MS-MAX version? If not, what does it do?

    How does oscomm know when a product is a downloadable product?
    If a downloadable product is free, how can I have the user register and log in to download the product without having to go through the payment details part?

    Thanks a lot guys!
    Jan

  2. #2
    Member
    Join Date
    Oct 2003
    Location
    The Antelope Valley in SoCal
    Posts
    47
    Rep Power
    0


    Default

    Is the download controller part of the latest MS-MAX version?
    Yes, it is.

    How does oscomm know when a product is a downloadable product?
    By adding it thru the Control Panel, in Product Attributes.

    1) First, FTP upload your Virtual Product to the catalog/downloads folder. 2) After adding your Virtual Product using the administrration control panel, click on product attributes and create an option, then at the bottom where it says "Filename" you insert the url to point to the file in the downloads folder.


    A solution to allow free access to your customers would be to create a new page (SEE - Exercise 4 Boxes: Adding New Boxes, Links and Pages), list your links to the FREE Downloads, then add the following code to this new page (code taken from catalog/account.php):

    require('includes/application_top.php');

    if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
    }

    Now when someone tries to access this page, they are automatically redirected to the login page. The, upon successful login, they will be redirected to the requested page.

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    10
    Rep Power
    0


    Default Error with forcing logon of user when clicking on added link

    Hello,

    I have followed your advice and excercise 4 to add an extra box with links to test page 1, 2, 3 and 4. This works well untill I add the piece of code that you suggested to force a user to log in before accessing test page 1.

    The code I added to test page 1 was:

    require('includes/application_top.php');

    if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
    }

    This does force the user to log in, or register but when test page 1 is accessed, it only shows a blank screen. Without the login check the test page 1 works well with a "continue" button and everything!

    What am I doing wrong?

    Would really appreciate help with this!

    Thanks
    Jan

  4. #4
    New Member
    Join Date
    Jan 2004
    Posts
    10
    Rep Power
    0


    Default Got it! Never mind!

    Ok, I just had the
    require('includes/application_top.php');
    statement before and after my logon check and that should not be repeated twice.

    It is now fixed and works like a charm!

    Thanks for your advice!
    Jan

  5. #5
    Member
    Join Date
    Oct 2003
    Location
    The Antelope Valley in SoCal
    Posts
    47
    Rep Power
    0


    Default

    Actually, msasek deserves the "atta boy" because he was the one that showed me the light concerning forced logins.

    So, therefore, I just paid it forward. Glad this worked for you as it did for me . . . .

    Robert

Similar Threads

  1. Download Controller Not working
    By HipHopServers in forum osCMax v2 Features Discussion
    Replies: 9
    Last Post: 08-09-2006, 09:49 PM
  2. Download Controller Issue - Please Help
    By LynnL in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 01-19-2006, 01:50 AM
  3. FYI - Download Controller
    By tbone in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 07-26-2005, 02:18 AM
  4. download controller
    By jloyzaga in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 09-07-2003, 05:18 PM
  5. anyone tried installing the download controller?
    By joey in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 08-23-2003, 05:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •