Post by AvanOsch » Sat May 12, 2012 12:39 am

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.

User avatar
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by Qphoria » Sat May 12, 2012 12:55 am

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


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by AvanOsch » Sat May 12, 2012 1:00 am

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
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by Johnathan » Sat May 12, 2012 1:45 am

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
Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by AvanOsch » Sat May 12, 2012 8: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
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by madimar » Sat May 12, 2012 1:55 pm

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.

-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------


User avatar
Active Member

Posts

Joined
Thu Sep 24, 2009 6:27 pm


Post by AvanOsch » Sat May 12, 2012 10: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
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by AvanOsch » Sun May 13, 2012 5:10 am

Just updated the extension.
Let me know what you think, and please post any bugs you may find!

User avatar
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by AvanOsch » Sun May 13, 2012 5:26 am

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
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by madimar » Sun May 13, 2012 1:59 pm

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

M

Sent from my DesireHD.

-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------


User avatar
Active Member

Posts

Joined
Thu Sep 24, 2009 6:27 pm


Post by AvanOsch » Tue May 22, 2012 9: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
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by madimar » Wed May 30, 2012 5:31 am

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

-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------


User avatar
Active Member

Posts

Joined
Thu Sep 24, 2009 6:27 pm


Post by madimar » Wed May 30, 2012 11: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

-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------


User avatar
Active Member

Posts

Joined
Thu Sep 24, 2009 6:27 pm


Post by eric_hsu » Thu May 31, 2012 4:07 pm

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!

Newbie

Posts

Joined
Thu May 31, 2012 3:23 pm

Post by eric_hsu » Thu May 31, 2012 4:07 pm

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!

Newbie

Posts

Joined
Thu May 31, 2012 3:23 pm

Post by madimar » Thu May 31, 2012 5:25 pm

Try to clean system/cache folder, maybe it is related to the same issue I was reporting

-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------


User avatar
Active Member

Posts

Joined
Thu Sep 24, 2009 6:27 pm


Post by eric_hsu » Thu May 31, 2012 8: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.

Newbie

Posts

Joined
Thu May 31, 2012 3:23 pm

Post by dvweb » Mon Jun 04, 2012 3:16 pm

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

Newbie

Posts

Joined
Fri Mar 30, 2012 2:31 pm

Post by AvanOsch » Tue Jun 05, 2012 2:15 am

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
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by bonustid » Tue Jun 05, 2012 7:16 am

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

Newbie

Posts

Joined
Tue Jun 05, 2012 6:59 am
Who is online

Users browsing this forum: No registered users and 5 guests