Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Customization for "referrals"?

    I'm not sure if this question has been asked already, or if this is even the right place to ask. I know about the way zen-cart flags users upon registration and about the first-time discount coupon used option. This doesn't really work for my situation. What I need to set up is a one-time referral purchase. This customer may or may not have already been a registered user, and regardless of how many orders they have placed with us, we need to be able to capture this one-time referral.

    I'm trying to make it so that if someone comes to our site via the following link:

    oursite.com/index.php?main_page=index&manufacturers_id=31&referred_by=31

    I do the following:
    1) capture the "referred_by" information,
    2) add it to a cookie for the session

    After a sucessful purchase for this session only, then I:
    3) check if they have the above cookie set, and if so:
    4) save this information in the database (at the same time that the order is released by paypal, I guess).

    The rest of the specific details are a little vague and I'm not sure exactly where or how to do the above tasks. (modifying the database, and writing to the database is the easy part, what I am struggling with is figuring out how to record the cookie, retrieve the cookie, and WHEN to record the 'referred by' field with the recently placed order).

    If someone could give me some assistance as to which files I need to change, etc, it could help me resolve this much faster.

    Thanks in advance!

  2. #2
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Customization for "referrals"?

    Is there no-one who can help me with telling me which files I should be working on to accomplish the above goals?

    Maybe I'm thinking about this in a complex manner, and there's a much easier way to handle the above business requirement using a different method. I'm open to suggestions!

 

 

Similar Threads

  1. advanced "search" customization for product listings
    By easy3dsource in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 15 Apr 2011, 02:08 AM
  2. Comment out "Check for Updates" Button, "Support Site" Link, & "Version" Link?
    By g00glethis1 in forum Customization from the Admin
    Replies: 4
    Last Post: 15 Mar 2010, 06:32 AM
  3. Replies: 3
    Last Post: 3 Jun 2008, 11:41 AM
  4. Downloads: 0 for unlimited, leaves weird characters in "my account" for "remaining"
    By Elarya in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Mar 2008, 04:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg