Community Forums

[Extension] Customer Group Discounts

Support for mods, payments, shipping, totals, modules, and languages in OpenCart v1.x

[Extension] Customer Group Discounts

Postby AvanOsch » Fri May 11, 2012 4:39 pm

This is the official "Customer Group Discounts" extension Topic.
You can find the extension here: http://www.opencart.com/index.php?route=extension/extension/info&extension_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.
User avatar
AvanOsch
 
Posts: 106
Joined: Sat Sep 03, 2011 1:17 pm

Re: [Extension] Customer Group Discounts

Postby Qphoria » Fri May 11, 2012 4:55 pm

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. ;)
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18208
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [Extension] Customer Group Discounts

Postby AvanOsch » Fri May 11, 2012 5:00 pm

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...
User avatar
AvanOsch
 
Posts: 106
Joined: Sat Sep 03, 2011 1:17 pm

Re: [Extension] Customer Group Discounts

Postby Johnathan » Fri May 11, 2012 5:45 pm

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.
Image
ImageImageImageImageImageImageImageImageImage
User avatar
Johnathan
Global Moderator
 
Posts: 2866
Joined: Thu Dec 17, 2009 7:08 pm

Re: [Extension] Customer Group Discounts

Postby AvanOsch » Sat May 12, 2012 12:40 am

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) ;D
User avatar
AvanOsch
 
Posts: 106
Joined: Sat Sep 03, 2011 1:17 pm

R: [Extension] Customer Group Discounts

Postby madimar » Sat May 12, 2012 5:55 am

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.
User avatar
madimar
 
Posts: 994
Joined: Thu Sep 24, 2009 10:27 am

Re: R: [Extension] Customer Group Discounts

Postby AvanOsch » Sat May 12, 2012 2:14 pm

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...
User avatar
AvanOsch
 
Posts: 106
Joined: Sat Sep 03, 2011 1:17 pm

Re: [Extension] Customer Group Discounts

Postby AvanOsch » Sat May 12, 2012 9:10 pm

Just updated the extension.
Let me know what you think, and please post any bugs you may find!
User avatar
AvanOsch
 
Posts: 106
Joined: Sat Sep 03, 2011 1:17 pm

Re: R: [Extension] Customer Group Discounts

Postby AvanOsch » Sat May 12, 2012 9:26 pm

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!
User avatar
AvanOsch
 
Posts: 106
Joined: Sat Sep 03, 2011 1:17 pm

R: [Extension] Customer Group Discounts

Postby madimar » Sun May 13, 2012 5:59 am

It seems really great mate, I will check it deeply, really soon.

M

Sent from my DesireHD.
User avatar
madimar
 
Posts: 994
Joined: Thu Sep 24, 2009 10:27 am

Re: [Extension] Customer Group Discounts

Postby AvanOsch » Tue May 22, 2012 1:05 pm

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...
User avatar
AvanOsch
 
Posts: 106
Joined: Sat Sep 03, 2011 1:17 pm

Re: [Extension] Customer Group Discounts

Postby madimar » Tue May 29, 2012 9:31 pm

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
User avatar
madimar
 
Posts: 994
Joined: Thu Sep 24, 2009 10:27 am

Re: [Extension] Customer Group Discounts

Postby madimar » Wed May 30, 2012 3:28 pm

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
User avatar
madimar
 
Posts: 994
Joined: Thu Sep 24, 2009 10:27 am

Re: [Extension] Customer Group Discounts

Postby eric_hsu » Thu May 31, 2012 8:07 am

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!
eric_hsu
 
Posts: 5
Joined: Thu May 31, 2012 7:23 am

Re: [Extension] Customer Group Discounts

Postby eric_hsu » Thu May 31, 2012 8:07 am

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!
eric_hsu
 
Posts: 5
Joined: Thu May 31, 2012 7:23 am

Re: [Extension] Customer Group Discounts

Postby madimar » Thu May 31, 2012 9:25 am

Try to clean system/cache folder, maybe it is related to the same issue I was reporting
User avatar
madimar
 
Posts: 994
Joined: Thu Sep 24, 2009 10:27 am

Re: [Extension] Customer Group Discounts

Postby eric_hsu » Thu May 31, 2012 12:36 pm

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.
eric_hsu
 
Posts: 5
Joined: Thu May 31, 2012 7:23 am

Re: [Extension] Customer Group Discounts

Postby dvweb » Mon Jun 04, 2012 7:16 am

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 O0
dvweb
 
Posts: 1
Joined: Fri Mar 30, 2012 6:31 am

Re: [Extension] Customer Group Discounts

Postby AvanOsch » Mon Jun 04, 2012 6:15 pm

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.
User avatar
AvanOsch
 
Posts: 106
Joined: Sat Sep 03, 2011 1:17 pm

Re: [Extension] Customer Group Discounts

Postby bonustid » Mon Jun 04, 2012 11:16 pm

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
Attachments
discount error.pdf
(150.6 KiB) Downloaded 98 times
bonustid
 
Posts: 1
Joined: Mon Jun 04, 2012 10:59 pm

Next

Return to Extension Support

Who is online

Users browsing this forum: Sea-Wing_Designs and 8 guests

Hosted by Arvixe Web Hosting