This is a simple mod that adds a new start column to the Quantity Discount table. This column contains either “1+” or “[Minimum Quantity]+” depending on how the item is configured.
Note: As seen in the attachment, the price displayed in the new column will reflect any Promotions. I'm trying to figure out a way to force it to the standard item price.
I just tested your pricing configuration with a sample product in 2.0.12 + my mod. Seems like everything works as expected. All pricing changes correctly when the user is registered or guest.
Is it possible for a registered member to see the membership quantity discount and non membership quantity discount so he could compare how much he saves with this membership?
[quote name=‘Darius’]Is it possible for a registered member to see the membership quantity discount and non membership quantity discount so he could compare how much he saves with this membership?[/QUOTE]
Nope. You’d need to do some tweaking to the PHP files for that.
I just wanted to clarify what’s happening and what I would like to see
When I assign user groups to the Qty Discount I would expect if a user assigned to that group signs into the website they would only see the qty discounts that relate to that group.
What I am seeing is one value from each of the lower limits.
In my 2.0.12 install, all price breaks / user groups in your example display correctly - except for Qty 1. This appears to be a bug. In my testing, Qty 1 price is fixed at the amount entered in the Admin/Products/General “Price” field regardless of Qty 1 pricing assigned to User Groups on the Admin/Products/Qty Discounts tab. I’ll submit a bug report now.
Worth noting: The cart doesn’t update a registered user’s User Group status until a logout/login has been performed. This caused some confusion while I was troubleshooting this.
Well, after posting the bug, I see that the Qty 1 price DOES display correctly in 2.0.12. This must have been fixed somewhere between 2.0.8 and the latest release.
I’m not sure if I explained myself but I have found a way to solve my problem.
My problem was this:
I need to set a standard price that is seen by guests and resisted users.
Registered users can be assigned to a special price group (many of these groups with different pricing and different price breaks)
I need to import the Qty pricing (there is a lot of them)
The problem occurs when a customer is assigned to a special price group as they can also see ‘registered’ users and ‘all’ price breaks (only if the price breaks differ)
Also when importing the Qty pricing it appears that you cannot assign a price to guest or registered.
The solution:
Have two standard price groups - guest and a new group I have called customer
I can assign the same qty price breaks for guest and customer and when a guest becomes a registered member they are by default assigned to the new customer group.
This makes it easy to manage as I don’t need ‘All’ or ‘Registered’ group pricing.
Any special price customers can be assigned to their relevant special price group and unassigned from the customer group.
Works like a charm :o
Example and setup:
For this example it is assumed that the default usergroup is called ‘Customer’ with an usergroup_id of 8
The reason for this is to ensure that Qty Discounts can easily be managed. Setup as follows:
Assign the default Qty Discounts price of the products to Customer and Guest group (if you don’t want the user to see any difference when they register)
Ensure that you set a price for qty 1 for each group
Set the price under the general tab higher than any of you other prices ie if you product max price is £60 for one then set the general price to £1000 for example.
Assign your Qty Discounts special prices to any group you wish to manage
Again ensure that you set a price for qty 1 for each special group
Now all your non registered and registered users see the same price however when you un-assign registered customers from the ‘Customer’ group and re-assign to a special price group the special priced customers see individual pricing depending on their group.
The cide edit:
The file is core/fn.users.php
Find the line:
$auth = fn_fill_auth($user_data);
Change to:
$auth = fn_fill_auth($user_data);
}
}
// New code to add user to a default group
db_query("INSERT INTO ?:usergroup_links (status, user_id, usergroup_id) VALUES ('A', $user_id, '8')");
$auth = fn_fill_auth($user_data);