Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2010
    Posts
    79
    Plugin Contributions
    0

    Default Customer Memberships.

    Not sure how hard this would be to do.
    Without going into to much detail, this is what I'd like to do.

    To have a customer buy a membership before they are allowed to browse the rest of the store or see prices.
    When they buy a membership, each membership will have a unique number which can only be assigned by the admin (basically go into the customer profile and the admin will add the assigned membership number).
    Also be able to send a newsletter to all current membership owners.

    So how hard would this be to do?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Customer Memberships.

    I am assuming that you added a new field to the customers table, something like:
    customers_membership

    When that is blank, the customer does not have a membership ...

    When the customer is a Guest, or not logged in, they are not a "member" ...

    You could customize the function to manage the Add to Cart/Buy Now similar to how the Customer Approval works ...

    In the functions_general.php you will see the function:
    function zen_get_buy_now_button($product_id, $link, $additional_link = false) {

    You could add a test for the specific customer using the:
    $_SESSION['customer_id']

    to look up the customer membership status ...

    If you place the test for this below:
    Code:
    // show case only superceeds all other settings
        if (STORE_STATUS != '0') {
          return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' .  TEXT_SHOWCASE_ONLY . '</a>';
        }
    You could setup a return of something like:
    Login to Shop

    if the customer is not logged in ...

    If the customer is logged in but has no membership, then return something like:

    Not a Member

    and as part of the testing, check if the customer is on a $product_id for a Membership Product, and if they are, just let the function behave as always so that they can buy a Membership ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2010
    Posts
    79
    Plugin Contributions
    0

    Default Re: Customer Memberships.

    Posted via Mobile Device

  4. #4
    Join Date
    Jul 2010
    Posts
    79
    Plugin Contributions
    0

    Default Re: Customer Memberships.

    Ok thanks for the info. I don't know anything about php, so I might have to start learning somewhere.
    Posted via Mobile Device

 

 

Similar Threads

  1. Memberships???
    By memardis in forum General Questions
    Replies: 1
    Last Post: 20 May 2011, 05:00 PM
  2. Selling memberships
    By tinadad in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 22 Jan 2009, 09:58 PM
  3. Paid Memberships
    By Hak Foo in forum General Questions
    Replies: 3
    Last Post: 6 Dec 2007, 07:42 PM
  4. Creating Memberships
    By acreativepage in forum General Questions
    Replies: 3
    Last Post: 5 Jan 2007, 05:37 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