osCmax v2.5 User Manual
Results 1 to 4 of 4

Does anyone know about contribution #1658 by Robert Brady?

This is a discussion on Does anyone know about contribution #1658 by Robert Brady? within the osCMax v1.7 General Mods Discussion forums, part of the osCmax v1.7 Forums category; Does anyone know about contribution #1658 by Robert Brady? I tried to install it in the other OsC – didn’t ...

      
  1. #1
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    6


    Default Does anyone know about contribution #1658 by Robert Brady?

    Does anyone know about contribution #1658 by Robert Brady?

    I tried to install it in the other OsC – didn’t happen. So I came here and downloaded MAX! version – glad I did.
    However, I still can’t find the files I am supposed to change.
    The directions read “2) Modify "catalog/templates/content/login.tpl.php" as follows:
    FIND (around line 59)”

    Templates doesn’t have a content folder. It has a fallback folder that has a content folder in it and a login.tpl.php file.
    I thought great! He just missed a file – wrong! login.tpl.php doesn’t have a line 59 – actually in only has 49 lines total.

    Does anyone know what to do? Does anyone have a better contribution I can use?
    Does anyone know why this isn’t just part of the program in the first place? lOl
    I am new at programming and I REALLY need a subscription!

    Help!
    ~eDee

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Does anyone know about contribution #1658 by Robert Brady?

    I don't see the Membership / Subscription Only mod ported to OSCMAX here. And the one on OSC does mention the old MS2-MAX (now OSCMAX) but can't find the refence as you mention. PLEASE list the WHOLE modification part as I am sure it would have said to find "this bit of code". LOOK for the code in the file the main login.php or the "catalog/templates/fallback/content/login.tpl.php".

    This mod (from 2003) may be based on a lot older version than 2.0 RC3 possably 1.5 or 1.7 which is why the line number may have changed.

  3. #3
    Member
    Join Date
    Apr 2007
    Posts
    65
    Rep Power
    6


    Default Re: Does anyone know about contribution #1658 by Robert Brady?

    Quote Originally Posted by jpf View Post
    I don't see the Membership / Subscription Only mod ported to OSCMAX here. And the one on OSC does mention the old MS2-MAX (now OSCMAX) but can't find the refence as you mention. PLEASE list the WHOLE modification part as I am sure it would have said to find "this bit of code". LOOK for the code in the file the main login.php or the "catalog/templates/fallback/content/login.tpl.php".

    This mod (from 2003) may be based on a lot older version than 2.0 RC3 possably 1.5 or 1.7 which is why the line number may have changed.
    osCommerce: Membership / Subscription Only

    Is there anything new?
    Here is the whole modification part:

    Part (A)

    (if you have created seperate Member's Only pages within the catalog for content, see part B below also)

    1) Create your PayPal "Recurring Subscription Button" code at the PayPal website. Make sure to input the "RETURN" url (http://www.YourWebsiteURL.com/catalo...te_account.php) & the "CANCEL" url to point to your home page.

    Copy the HTML code generated for the Email. You'll be inserting it in the next step.....(Keep the PayPal Window Open - You'll be back for more code in a minute - or just cut and paste all of the generated code into your text editor)

    2) Modify "catalog/templates/content/login.tpl.php" as follows:

    FIND (around line 59)

    <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>


    REPLACE IT WITH THIS:

    <td align="right"><?php echo '<a href="INSERT THE PAYPAL GENERATED EMAIL CODE HERE">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>


    Now the visitor will be sent to PayPal from the Login page, pay for his Membership/Subscription and be automatically returned to your website to fill out the form (catalog/create_account.php).

    I thank you for any help you can give me. I don't do enough programming to create the a log in by myself. If I can't make this work, it means finding another shopping cart and starting again.
    ~eDee

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Does anyone know about contribution #1658 by Robert Brady?

    That code is found in:
    /catalog/includes/login_acc.php
    /catalog/includes/login_pwa.php
    /catalog/includes/login_pwa_optional.php

Similar Threads

  1. Need Mod/add-on/Contribution
    By Twister in forum osCmax v2 Customization/Mods
    Replies: 24
    Last Post: 10-30-2007, 03:36 PM
  2. Help with Contribution?
    By bkpie in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 03-05-2007, 01:07 PM
  3. Contribution help
    By offnetrob in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-02-2006, 01:57 PM
  4. any contribution?
    By superkor in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-20-2003, 11:04 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
  •