Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SUBSCRIPTION/MEMEBERSHIP ASSISTANCE--ANYONE!!!!!


maxdog

Recommended Posts

Posted

Since there doesn't seem to be any assistance whatsoever regarding subscription/memeberships in oscommerce I decided to integrate a piece of software called amemeberPRO into oscommerce. The proble is that it is equipped with login,password/username ,etc, scripts that oscommerce already has. Can anyone please let me know how I could merge the 2 and use the GREAT features that oscommerce provides but also use the membership/subscription functionality of amemberPRO !!!!

Posted

there is a membership contribution . . .

Posted

Go in the contributions section (link at top of page) and do a search for membershjp

 

The_Bear

Posted

why does it seem like getting assistance on memebership/subscription is like pulling teeth? Eventhough I'm no expert--I don't know how some one in the whole communtity ( actually even more than just 1 person) should have written dozens of contributions regarding this.Please inform me as to where others are.

 

If anyone is familar with the Netflix.com company I would like to mimick the way that there queing system works. Please feel free to visit my site www.maxflix.com and lend assistance as to how I can do this--at this point I'm willing to PAY!!!!

Posted

I've seen the subscription but it looks outdated. Can someone please tell me the equivaent of these files and the changes to the following pieces of code:

 

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/catalog/create_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).

********************************************************************************

**************************

PART (B)

The next step adds the "Cancel My Membership" to the Member's Account Page (catalog/templates/account.tpl.php)

 

Grab the Email code generated at PayPal for Cancelling a Membership

 

FIND this section (starting around line 153)

 

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_notifications.gif'); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></td>

</tr>

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></td>

</tr>

</table></td>

<td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table>

 

 

MODIFY THE TABLE AREA & INSERT YOUR CODE

(I added another row to accomodate the button)

(I also custom-made a "Cancel My Membership" button, but you can use the default PayPal button)

 

 

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_notifications.gif'); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></td>

</tr>

<tr>

<td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></td>

</tr>

<tr>

<td> </td>//This is one row I added

</tr>

<tr>

<td align="center"><A HREF="INSERT THE UNSUBSCRIBE EMAIL CODE HERE"><IMG SRC="http://www.YourWebSiteURL.com/catalog/includes/languages/english/images/buttons/cancel_membership.gif" BORDER="0"></A></td>

</tr>

<tr>

<td> </td>

</tr>

</table></td>

<td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table>

********************************************************************************

***************************************

 

PART ©

Member's Only Pages - Basic Page Protection

(prevents access by unregistered members - any protected page requested redirects visitor to LOGIN (catalog/login.php)

 

Into the top of the page you want to protect, insert:

 

 

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

 

Note: If your page has a "require" near the top, paste the above code below the "require" statement....

********************************************************************************

*****************

 

Here is a sample of what the code looks like in my newly created page "catalog/includes/languages/english/video1.php":

 

 

<?php

 

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

 

define('NAVBAR_TITLE', 'Video Studio Test Page 1');

define('HEADING_TITLE', 'Video Studio Test Page 1');

 

define('TEXT_INFORMATION', 'All of my Text & HTML is inserted here');

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...