Zen Cart Logo
Forums / Managing Customers and Orders / Customer Memberships.

Customer Memberships.

Locked

Views: 777

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Aug 2010, 2:23 AM
#1
fragageddon avatar

fragageddon

New Zenner

Join Date:
Jul 2010
Posts:
79
Plugin Contributions:
0

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?

11 Aug 2010, 5:07 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

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

12 Aug 2010, 12:13 PM
#3
fragageddon avatar

fragageddon

New Zenner

Join Date:
Jul 2010
Posts:
79
Plugin Contributions:
0

Re: Customer Memberships.

Posted via Mobile Device

12 Aug 2010, 12:14 PM
#4
fragageddon avatar

fragageddon

New Zenner

Join Date:
Jul 2010
Posts:
79
Plugin Contributions:
0

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