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 shianne@sistersecrets.net
Re: Buying into a membership group and discount pricing per item.
Quote:
Originally Posted by
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.
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']
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
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:
Re: Buying into a membership group and discount pricing per item.
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
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 ...
Re: Buying into a membership group and discount pricing per item.
Quote:
Originally Posted by
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:
Re: Buying into a membership group and discount pricing per item.
Quote:
Originally Posted by
Ajeh
You are most welcome ... let us know what customizations work best for you to manage this ... :cool:
Quote:
Originally Posted by
Ajeh
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.