Page 1 of 7
[Extension] Customer Group Discounts
Posted: Sat May 12, 2012 12:39 am
by AvanOsch
This is the official "Customer Group Discounts" extension Topic.
You can find the extension here:
http://www.opencart.com/index.php?route ... on_id=4949
I am currently working on a new release, which will incorporate all the requests/bugfixes that were posted at the Extension page. (All posts are removed from there, as they are now obsolete)
The coding is finished.
I just need to build the vQMod files and adjust the manual and it'll be done.
Re: [Extension] Customer Group Discounts
Posted: Sat May 12, 2012 12:55 am
by Qphoria
LOL... just what we need... ANOTHER customer group discount mod.. I think there are about 5 or 6 of them now. All slightly different of course. Welcome to the club.

Re: [Extension] Customer Group Discounts
Posted: Sat May 12, 2012 1:00 am
by AvanOsch
Hi Q,
This is an already existing mod.
I just started this topic, because we where kinda using the extension page as a forum...
But I agree, lots o customer group discount extensions.
It's just that none of them worked for me or are paid, so I wrote my own.
Not too much trouble so my extension is FREE...
Re: [Extension] Customer Group Discounts
Posted: Sat May 12, 2012 1:45 am
by Johnathan
It looks like an interesting implementation of customer group discounts, and looks pretty decent for a free extension. Are you planning on keeping it free, or just until all the bugfixes are in place?
If people are looking for a commercial solution with some more flexibility, then I do have a
Category-Based Fee/Discount extension available.
Re: [Extension] Customer Group Discounts
Posted: Sat May 12, 2012 8:40 am
by AvanOsch
Johnathan wrote:Are you planning on keeping it free, or just until all the bugfixes are in place?
Always!
Otherwise, it wouldn't be fair to the extension.
(First let it be free, and then take that "freedom" away)

R: [Extension] Customer Group Discounts
Posted: Sat May 12, 2012 1:55 pm
by madimar
It seems nice! I read the "known" catch about products with many categories. What about nested categories?
Are you able to set a discount for a parent category inherited by all children with, e.g, a single exception for just one child?
M
Sent from my DesireHD.
Re: R: [Extension] Customer Group Discounts
Posted: Sat May 12, 2012 10:14 pm
by AvanOsch
madimar wrote:Are you able to set a discount for a parent category inherited by all children with, e.g, a single exception for just one child?
No.
Children do not inherit the discount, and You'll have to set each category's discount separately.
As you can check the boxes in the category listing to set the discount for multiple categories at once, this should not be a problem...
Re: [Extension] Customer Group Discounts
Posted: Sun May 13, 2012 5:10 am
by AvanOsch
Just updated the extension.
Let me know what you think, and please post any bugs you may find!
Re: R: [Extension] Customer Group Discounts
Posted: Sun May 13, 2012 5:26 am
by AvanOsch
madimar wrote:Are you able to set a discount for a parent category inherited by all children with, e.g, a single exception for just one child?
Let me explain all the discounts settings more clearly:
Products get the discount that is set with that product ("Special" price).
If no Product Special was set (or is currently valid), the Category's discount is used.
If no Category discount was set, the Customer Group default discount is used.
Option discounts always get set (even if the product has no discount set!!!)
If no Option discount is set, the Product (or category, or customer group) Discount is used.
If any discount is set to 0%, no discount will be used. (Product Specials will still be applied)
So you can give an entire Customer Group the same discount for all products and options by setting the discount only from:
Admin-->Sales-->Customers-->Customer Groups
You can then add exceptions for certain Categories, by giving those Categories (and their children) another discount (or "0" for no discount).
You can then add exceptions for certain Products, by giving those Products another discount (Product Special)
You can then also add exceptions for certain Options, by giving those Options another discount (or "0" for no discount)
Basically, you can set a discount for every customer group, category, product and option separately!
R: [Extension] Customer Group Discounts
Posted: Sun May 13, 2012 1:59 pm
by madimar
It seems really great mate, I will check it deeply, really soon.
M
Sent from my DesireHD.
Re: [Extension] Customer Group Discounts
Posted: Tue May 22, 2012 9:05 pm
by AvanOsch
Benny reported a bug when using "[Fix] - Admin Catalog Options"
IMHO that's a pretty messy extension... (And I don't really get what it is for)
No comments, no installation instructions, and it changes default code where it's not needed.
Not very surprising it causes problems with other extensions...
If you want this extension to play nice with "[Fix] - Admin Catalog Options":
1) Install "[Fix] - Admin Catalog Options"
2) Then edit "admin/model/catalog/option.php":
FIND: `sort_order`
REPLACE WITH: sort_order
(remove the surrounding "Grave Accents" --> They are not needed)
Customer Group Discounts will then insert it's own code in the proper places...
As I said, I don't know what "[Fix] - Admin Catalog Options" is for, nor what it does.
The above makes sure "Customer Group Discounts" can find the ORIGINAL code. I don't know about all the added code in the file...
Re: [Extension] Customer Group Discounts
Posted: Wed May 30, 2012 5:31 am
by madimar
AvantOsch,
I'm finally testing your contribution. I'm just thinking about again to the nested category point. It could be really great if a discount set to a category could be propagated to all its nested categories. At the moment, for my needs, this is a fundamental point.
Do you think it could be feasible?
M
Re: [Extension] Customer Group Discounts
Posted: Wed May 30, 2012 11:28 pm
by madimar
Another important point AvantOsch! I don't know if it happens because I'm working on a local environment, but I experience issues with product cache. Basically if I set a category discount and then I change it, product price is not updated unless I don't reset manually system cache. It is something expected?
M
Re: [Extension] Customer Group Discounts
Posted: Thu May 31, 2012 4:07 pm
by eric_hsu
I had some problem about the "Customer Group Discounts".
When I try to change the discount value, the preview price and best sellers can not be calculated immediately and showed.
However, the discount price in product page is right.
Would you pls tell me what's problem about it? Could you modify it?
It's important and urgent to us. Thanks a lot!
Re: [Extension] Customer Group Discounts
Posted: Thu May 31, 2012 4:07 pm
by eric_hsu
I had some problem about the "Customer Group Discounts".
When I try to change the discount value, the preview price and best sellers can not be calculated immediately and showed.
However, the discount price in product page is right.
Would you pls tell me what's problem about it? Could you modify it?
It's important and urgent to us. Thanks a lot!
Re: [Extension] Customer Group Discounts
Posted: Thu May 31, 2012 5:25 pm
by madimar
Try to clean system/cache folder, maybe it is related to the same issue I was reporting
Re: [Extension] Customer Group Discounts
Posted: Thu May 31, 2012 8:36 pm
by eric_hsu
madimar wrote:Try to clean system/cache folder, maybe it is related to the same issue I was reporting
Useless, I had tried it on 3 computers. it's the same situation.
Re: [Extension] Customer Group Discounts
Posted: Mon Jun 04, 2012 3:16 pm
by dvweb
Hi!
I've got some caching problem. When my customer rewrites the discounts, on the category and on the latest prod. page the price doesn't change immediately.
After I clean the cache directory everything is OK.
Please help! thx

Re: [Extension] Customer Group Discounts
Posted: Tue Jun 05, 2012 2:15 am
by AvanOsch
Sorry everybody for the late reply, but I've been away on vacation...
There seems to be a bug with caching.
I'll have a look into the problem, and try to fix a.s.a.p.
Re: [Extension] Customer Group Discounts
Posted: Tue Jun 05, 2012 7:16 am
by bonustid
Hello
I added a discount, but now I can not remove or edit it again.
I set the category discount value to 0% but it still shows on the page. ( I tried to clear cashe)
The strange thing is that the correct value (price without %) shows in the cart.
How can I remove the discount?
Regards
Mads