If this is your first visit, check our documentation. To post, register or login.
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Buying into a membership group and discount pricing per item.

Buying into a membership group and discount pricing per item.

Locked

Started by omen3891 on 11 Jan 2008, 7:03 PM · Views: 11,280

Results 1 to 20 of 34
This thread is locked. New replies are disabled.
11 Jan 2008, 7:03 PM
#1
omen3891 avatar

omen3891

New Zenner

Join Date:
Jan 2008
Posts:
2
Plugin Contributions:
0

Buying into a membership group and discount pricing per item.

I am trying to set up the site to have 2 user group levels (public w/no discount & member w/discount) which have group pricing on a per item basis. Ideally, the website would sell the membership and handle the user groups automatically. Im trying to avoid reinventing the wheel here and did some minimal poking around and found several threads where such functionality had been asked for, however, Ive not found a definite answer. If there is something anyone can point me to it would be greatly appreciated.

Currently I am looking at using the Group Pricing (per item) add on to set this up. One problem is that it would leave the admin to setup the user groups, and it creates a delay between purchase of the membership and the time they get a discount. I had thought of a potential solution to this by creating a downloadable file for a one month temporary membership card that would have a discount code they could use to get the member price. Am I going down the right path with this or am I chasing my tail?

7 Feb 2008, 8:47 AM
#2
dontino avatar

dontino

Zen Follower

Join Date:
Apr 2004
Posts:
155
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

I second that request.

I'm trying to accomplish something similair. I'd need the groups to be set automatically when the customer enters a number (which they get from a membership card) and their name.

Then they should automatically be added to a certain group discount.

Any easy way to accomplish this??

Tino

10 Mar 2008, 3:55 PM
#3
Join Date:
Nov 2007
Location:
oregon
Posts:
70
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

I am looking for this also. I am doing it manually right now and also need a way to leave out some catagories.

6 Apr 2008, 4:48 PM
#4
importman44 avatar

importman44

New Zenner

Join Date:
Apr 2008
Posts:
1
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

I have been looking around here and have NOT found anything that involves "Buying a membership" feature. Below is what I want the area to do.

What I would like to do is have a retail that you don't need a membership and a wholesale area that you need a membership. Is there a feature that I can automaticely have the wholesale area created when payment is taken for the membership. I want to have a login in area for the wholesale membership.

Does anyone know where I can find this on Zen Cart if we have it?

Thank you very much

:smile:

6 Mar 2009, 6:07 PM
#5
happymom avatar

happymom

New Zenner

Join Date:
May 2006
Posts:
82
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

Omen3891:

I am trying to set up the site to have 2 user group levels (public w/no discount & member w/discount) which have group pricing on a per item basis. Ideally, the website would sell the membership and handle the user groups automatically. Im trying to avoid reinventing the wheel here and did some minimal poking around and found several threads where such functionality had been asked for, however, Ive not found a definite answer. If there is something anyone can point me to it would be greatly appreciated.

Currently I am looking at using the Group Pricing (per item) add on to set this up. One problem is that it would leave the admin to setup the user groups, and it creates a delay between purchase of the membership and the time they get a discount. I had thought of a potential solution to this by creating a downloadable file for a one month temporary membership card that would have a discount code they could use to get the member price. Am I going down the right path with this or am I chasing my tail?

I need exactly the same thing too. I am also doing it manually, but I need this to be automatically, once they purchase the membership.

I was thinking that to do this, I would had to add code that basically says: if the product that you purchase is "BLA", then update the customer's group pricing. The problem I have is that I am not very familiar with how checkout process.

6 Mar 2009, 7:54 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Buying into a membership group and discount pricing per item.

Is this a buy once and forever in the Group?

Or, is this based on buy once and in the Group for a time period?

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!

6 Mar 2009, 7:58 PM
#7
Join Date:
Nov 2007
Location:
oregon
Posts:
70
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

Ajeh:

Is this a buy once and forever in the Group?

Or, is this based on buy once and in the Group for a time period?

would be nice to have it set to a time period, but a buy once would work for me.

6 Mar 2009, 8:03 PM
#8
happymom avatar

happymom

New Zenner

Join Date:
May 2006
Posts:
82
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

For right now, "Buy once" and forever in the group would be good.

At some point, I would also like to automatically deactivate the memberships, since my memberships last for one year, but I know that this will also require changes to the customer tables (additional tables to set the time frame for their membership), but if you could give me some ideas, e.g. list of files to look into, that would also be great.

Thanks!

6 Mar 2009, 11:53 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Buying into a membership group and discount pricing per item.

You can customize the purchases on the orders class where the stock is adjusted and when someone buys a given product they are added to a Group ...

You can also customize the function for adding to the cart to disable the ability to buy a Product based on the fact it was already purchased so someone cannot buy twice ... if that is needed ...

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!

7 Mar 2009, 12:32 AM
#10
happymom avatar

happymom

New Zenner

Join Date:
May 2006
Posts:
82
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

Where would I find this "orders class"? or which file is it? :smile:

I am assuming that this is the page where customers are redirected once their paypal payment was received.

Also - can you give me an idea as where in the file I would make my changes? Sometimes is hard to figure out what is going on the code w/o any comments.

I am currently using zen 1.3.7
Thanks!:smile:

7 Mar 2009, 12:37 AM
#11
sistersecrets avatar

sistersecrets

New Zenner

Join Date:
Feb 2009
Posts:
33
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

I know this is off subject, but i need to ask a question and i can't find the post button or how to start a post at all! I am know for not spotting things in plain site ;P

If you can help me, please message me at [email protected]

Sister Secrets
Made for every sister in the world!
http://sistersecrets.net

7 Mar 2009, 4:00 AM
#12
Join Date:
Nov 2007
Location:
oregon
Posts:
70
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

Ajeh:

You can customize the purchases on the orders class where the stock is adjusted and when someone buys a given product they are added to a Group ...

You can also customize the function for adding to the cart to disable the ability to buy a Product based on the fact it was already purchased so someone cannot buy twice ... if that is needed ...

could you point us to directions on adding someone to a discount group after purchasing a product. Using the latest zen cart.

7 Mar 2009, 3:44 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Buying into a membership group and discount pricing per item.

Around line 702 in the:
/includes/classes/order.php

you will see the line:

          $db->Execute("update " . TABLE_PRODUCTS . " set products_quantity = '" . $stock_left . "' where products_id = '" . zen_get_prid($this->products[$i]['id']) . "'");

Here you can check for the products_id with the:
zen_get_prid($this->products[$i]['id'])

If the products_id matches the products_id on the Product for the membership you can then update the table for:
customers

and the field for:
customers_group_pricing

for the customers_id from:
$_SESSION['customer_id']

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!

7 Mar 2009, 4:33 PM
#14
happymom avatar

happymom

New Zenner

Join Date:
May 2006
Posts:
82
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

Thank you so much. I will take a look and let you know how it goes.:lookaroun

7 Mar 2009, 4:43 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Buying into a membership group and discount pricing per item.

You are most welcome ... let us know what customizations work best for you to manage this ... :cool:

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!

7 Mar 2009, 4:45 PM
#16
happymom avatar

happymom

New Zenner

Join Date:
May 2006
Posts:
82
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

sure!:smile:

20 Apr 2009, 2:05 AM
#17
shoniqua avatar

shoniqua

New Zenner

Join Date:
Sep 2008
Posts:
33
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

I have a buy once - forever in group membership, I use the Group Pricing per item mod giving 2 groups of members 100% free products.

It works fine, except now I have 2 categories that I don't wish the group members to receive free but to purchase at the normal price.

When I price items for group members to receive free I use

Group B Price (Net): 0.0001
Group B Price (Gross): 0.0001
Group A Price (Net): 0.0001
Group A Price (Gross): 0.0001

Now with the 2 categories I wish for them to purchase I have tried

Group B Price (Net): 0.0000
Group B Price (Gross): 0
Group A Price (Net): 0.0000
Group A Price (Gross): 0

and even putting the actual price to no avail.

Either way it shows unit price/subtotal on 'Your Shopping Cart Contents' page, but when I go to checkout it shows discount of 100%

Does anybody know how I can fix this please?
Thank you in advance

20 Apr 2009, 3:17 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Buying into a membership group and discount pricing per item.

That is what the Group Discount does ...

It takes all of the Products ordered and applies the Discount for that Group ... in this case 100% ... to all of the products ...

To have it behave otherwise, you will really be needing to customize the code to work with exclusions and exceptions to the concept of the "over all discount" that Group Discount was built to support ...

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!

20 Apr 2009, 10:10 PM
#19
shoniqua avatar

shoniqua

New Zenner

Join Date:
Sep 2008
Posts:
33
Plugin Contributions:
0

Re: Buying into a membership group and discount pricing per item.

Ajeh:

That is what the Group Discount does ...

It takes all of the Products ordered and applies the Discount for that Group ... in this case 100% ... to all of the products ...

To have it behave otherwise, you will really be needing to customize the code to work with exclusions and exceptions to the concept of the "over all discount" that Group Discount was built to support ...

ohh pooh lol thank you for reply I understand :bigups:

21 Apr 2010, 8:22 PM
#20
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: Buying into a membership group and discount pricing per item.

Ajeh:

You are most welcome ... let us know what customizations work best for you to manage this ... :cool:

Ajeh:

Around line 702 in the:
/includes/classes/order.php

you will see the line:

      $db->Execute("update " . TABLE_PRODUCTS . " set products_quantity = '" . $stock_left . "' where products_id = '" . zen_get_prid($this->products[$i]['id']) . "'");
> 
> Here you can check for the products_id with the:
> zen_get_prid($this->products[$i]['id'])
> 
> If the products_id matches the products_id on the Product for the membership you can then update the table for:
> customers
> 
> and the field for:
> customers_group_pricing
> 
> for the customers_id from:
> $_SESSION['customer_id']

Not to be obtuse but can you spell this out a little better as to what the lines would actually be to code this? Such that all I'd need is the product ID? Likely simple but I am at a loss.