Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Having trouble installing Membership / Subscription Only Contribution


Recommended Posts

Hi

 

I'm having a bit of trouble installing Membership / Subscription Only contribution. When installed correctly the customer clicks on "buy it now" and is brought directly to PayPal and then comes back to register and create a password. When a customer is at my login page and they click on "Buy Now" they get a message saying "The requested URL /store/catalog/<form action= was not found on this server"

I follow the instructions:

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 dont have a file called login.tpl.php but I did find the code they ask me to replace in my catalog.login.php and I inserted the PayPal generated code in the proper place and now that part of my catalog/login.php looks like this:

 

                    <td align="right"><?php echo '<a href="<form 

action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="CDV8XY6HWSVAL">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" 

name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" 

height="1">
</form>
">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

 

Any suggestions greatly appreciated. Cheers.

Link to comment
Share on other sites

I've made a bit of progress but still a couple of glitches:

 

When a customer is at create_account.php when they click on continue, they are brought to create_account_success.php but I want them to be brought to the paypal site for payment and then I want them to be returned to create_account_success.php so that they can use the password they created to login and view the video tutorials.

 

This is the code I modified in catalog/login.php to bring me to where I am right now:

                                               <td align="right"><?php echo '<a href="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="HZ3KV68YJT4UL">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>'; ?></td>
                       <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

 

What changes do I need to make to the code so that the customer is brought to the paypal site before create_account_success.php? Thanks.

Edited by dgriff
Link to comment
Share on other sites

I'm still really stuck on how do I bring customers from create_account.php to paypal and then back to create_account_success.php. If anyone has any suggestions....even if it's not 100% right...at least it'll point me in the right direction. Pretty please?

Link to comment
Share on other sites

I'll try to be more specific:

 

once a customer completes the create_account.php form and clicks continue I want them to go to paypal and then to account_success.php. I think I found the code in create_account.php that I need to change:

 

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

 

How would the code above need to look to bring the customer to paypal?

 

This is the code that was generated by paypal and I need to insert the paypal code into the code above but I'm not exactly sure how to do it.

 

PayPal Code:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="CTDGX29BXYND4">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Link to comment
Share on other sites

Does anyone know how I change this piece of code in create_account.php to point to paypal.com instead of account_success.php? Is it impossible?

 

This is the code in create_account.php I think I need to change:

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...