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?
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!
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!
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!
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!![]()
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]
Around line 702 in the:
/includes/classes/order.php
you will see the line:
Here you can check for the products_id with the:Code:$db->Execute("update " . TABLE_PRODUCTS . " set products_quantity = '" . $stock_left . "' where products_id = '" . zen_get_prid($this->products[$i]['id']) . "'");
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!
Thank you so much. I will take a look and let you know how it goes.![]()