Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Where do I find the actual Paypal Buttons?

Where do I find the actual Paypal Buttons?

Locked

Views: 2,226

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 Jun 2006, 1:57 AM
#1
amybryant avatar

amybryant

New Zenner

Join Date:
Jun 2005
Posts:
25
Plugin Contributions:
0

Where do I find the actual Paypal Buttons?

I need to add some coding to the paypal button for our affiliates program and I can't find it anywhere.

This is what I need to add:

<INPUT TYPE="hidden" NAME="custom" VALUE="<?php echo $_SERVER[REMOTE_ADDR]; ?>"> <INPUT TYPE="hidden" NAME="notify_url" VALUE="http://www.theeclecticgourmet.net/NixieAffiliate/nixie/affiliate.php">

I hope you can help,
thanks
amy Bryant

28 Jun 2006, 3:25 AM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,601
Plugin Contributions:
0

Re: Where do I find the actual Paypal Buttons?

The PayPal button? Zen Cart doesn't use PayPal buttons to checkout. More details of what you are wanting to do?

28 Jun 2006, 3:43 AM
#3
amybryant avatar

amybryant

New Zenner

Join Date:
Jun 2005
Posts:
25
Plugin Contributions:
0

Re: Where do I find the actual Paypal Buttons?

This code needs to be placed within my Paypal button form code . This is for an affiliate program.

<INPUT TYPE="hidden" NAME="custom" VALUE="<?php echo $_SERVER[REMOTE_ADDR]; ?>"> <INPUT TYPE="hidden" NAME="notify_url" VALUE="http://www.theeclecticgourmet.net/NixieAffiliate/nixie/affiliate.php">

Possibly in the module

Amy B

28 Jun 2006, 4:23 AM
#4
amybryant avatar

amybryant

New Zenner

Join Date:
Jun 2005
Posts:
25
Plugin Contributions:
0

Re: Where do I find the actual Paypal Buttons?

Should I be using this since there are no actual paypal buttons?

Integration With Other IPN Scripts

(1) Open NixieAffiliate/nixie/affiliate.php and FIND near line 5 :
include '../nixie-agent/ipn.php';
include '../nixie-agent/sqlinf.php';
Replace with :
include "/home/krisinva/public_html/NixieAffiliate/nixie-agent/ipn.php";
include "/home/krisinva/public_html/NixieAffiliate/nixie-agent/sqlinf.php";

(2) Open your other (not NixieAffiliate) IPN script in a plain text editor such as notepad and add the following line to the bottom line just before the PHP closing tag : ?>
include "/home/krisinva/public_html/NixieAffiliate/nixie/affiliate.php";

(3) Edit the notify_url field in your Paypal button form code. You must add the following line to the end of your notify URL.
?custom=<?php echo "$_SERVER[REMOTE_ADDR]"; ?>
An example complete notify_url field would appear like this :
<INPUT TYPE="hidden" NAME="notify_url" VALUE="http://www.yourdomain.com/ipnscript.php?custom=<?php echo $_SERVER[REMOTE_ADDR]; ?>">

NOTE : If your IPN script already passes a variable in its IPN URL, then use & instead of ?.

13 Jul 2006, 1:50 AM
#5
jdaviescoates avatar

jdaviescoates

New Zenner

Join Date:
Mar 2005
Posts:
16
Plugin Contributions:
0

Re: Where do I find the actual Paypal Buttons?

Hello Amy,

I think what you're looking for is located in your paypal setting over at paypal.com and not within ZenCart itself.

Log in to your paypal account and go to Profile.

From there, go to Instant Payment Notification Preferences where you can edit your IPN notify url.

Mine ends in "ipn_main_handler.php"

I guess I would whack "?custom=<?php echo "$_SERVER[REMOTE_ADDR]"; ?> " after it making "ipn_main_handler.php?custom=<?php echo "$_SERVER[REMOTE_ADDR]"; ?> " (but without the " " )

I would assume that you've gotta change SERVER[REMOTE_ADDR] to whatever your server and remote address is, but I'm just guessing.

Good luck,

Josef.

13 Jul 2006, 1:56 AM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Where do I find the actual Paypal Buttons?

if you change the IPN address then your zen cart wont get the order,
try asking them about a script to use on the checkout success page