Results 1 to 6 of 6
  1. #1
    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

  2. #2
    Join Date
    Jun 2003
    Posts
    33,825
    Plugin Contributions
    0

    Default 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?

  3. #3
    Join Date
    Jun 2005
    Posts
    25
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jun 2005
    Posts
    25
    Plugin Contributions
    0

    Default 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 ?.

  5. #5
    Join Date
    Mar 2005
    Posts
    16
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Mar 2004
    Posts
    16,019
    Plugin Contributions
    5

    Default 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

 

 

Similar Threads

  1. PayPal Pro - They've Made Changes
    By agraddy in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 22 Jun 2006, 05:35 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
  •