Results 1 to 10 of 34

Hybrid View

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

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

  2. #2
    Join Date
    Nov 2007
    Location
    oregon
    Posts
    70
    Plugin Contributions
    0

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

    Quote Originally Posted by Ajeh View Post
    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.

  3. #3
    Join Date
    May 2006
    Posts
    89
    Plugin Contributions
    0

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

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

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

  5. #5
    Join Date
    May 2006
    Posts
    89
    Plugin Contributions
    0

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

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

    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!

  6. #6
    Join Date
    Feb 2009
    Posts
    33
    Plugin Contributions
    0

    Default 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. #7
    Join Date
    Nov 2007
    Location
    oregon
    Posts
    70
    Plugin Contributions
    0

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

    Quote Originally Posted by Ajeh View Post
    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.

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

    Default 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:
    Code:
              $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!

  9. #9
    Join Date
    May 2006
    Posts
    89
    Plugin Contributions
    0

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

  10. #10
    Join Date
    Feb 2008
    Location
    Philadelphia
    Posts
    290
    Plugin Contributions
    3

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

    Quote Originally Posted by Ajeh View Post
    You are most welcome ... let us know what customizations work best for you to manage this ...
    Quote Originally Posted by Ajeh View Post
    Around line 702 in the:
    /includes/classes/order.php

    you will see the line:
    Code:
              $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.

 

 

Similar Threads

  1. online group pricing vs group pricing per item working with sale maker
    By giftsandwhatnot in forum Addon Payment Modules
    Replies: 1
    Last Post: 24 Oct 2011, 09:22 AM
  2. Group Pricing Per Item - Order of prices and Suffix
    By RFree190 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 11 Apr 2010, 09:55 PM
  3. How to make an item Free in Group Pricing (Per Item)?
    By lyricwings in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 1 Sep 2008, 09:41 PM
  4. Group Pricing (per item) and Coupon Bug
    By HappyMom in forum Bug Reports
    Replies: 9
    Last Post: 6 Jan 2007, 06:33 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