Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 1 of 2
Help, catalog rule does not work with customer group
 
lennypeng
Jr. Member
 
Total Posts:  17
Joined:  2009-06-07
 

The

Catalog price ruled

does not apply to customer group other than

Not logged In

and

General

.  It displays in the product list as already discounted price but after adding the product to the shopping cart, the price in the shopping cart is still the original price.

If I apply the same rule to either group

Not Logged In

or

General

, it works. Is it a bug or am I doing something wrong here.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
lennypeng
Jr. Member
 
Total Posts:  17
Joined:  2009-06-07
 

Anyone?  I found it might be a bug. No matter what customer group is, in the shopping cart, it always use the catalog price rule for “General” customer group.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ronifa
Jr. Member
 
Total Posts:  5
Joined:  2010-05-04
 

I have the same problem.
Magento version 1.3.2.4

Anyone?!?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pennystockhot
Jr. Member
 
Avatar
Total Posts:  1
Joined:  2010-07-14
New York City
 

i have the problem..

 
Magento Community Magento Community
Magento Community
Magento Community
 
Weis
Member
 
Avatar
Total Posts:  44
Joined:  2009-02-27
Kiev, Ukraine
 

@lennypeng
What version do you have?
If CE 1.4.x - it\’s core bug.
Go to app/code/core/Mage/CatalogRule/Model/Observer.php
Method processFrontFinalPrice
replace

if ($observer->hasCustomerGroupId()) {
            $gId 
$observer->getEvent()->getCustomerGroupId();
        
elseif ($product->hasCustomerGroupId()) {
            $gId 
$product->hasCustomerGroupId();
        
else {
            $gId 
Mage::getSingleton(\'customer/session\')->getCustomerGroupId();
        
}

with

if ($observer->hasCustomerGroupId()) {
            $gId 
$observer->getEvent()->getCustomerGroupId();
        
elseif ($product->hasCustomerGroupId()) {
            $gId 
$product->getCustomerGroupId();
        
else {
            $gId 
Mage::getSingleton(\'customer/session\')->getCustomerGroupId();
        
}

@ronifa
Just have checked on CE1.3.2.4 - it’s ok

 
Magento Community Magento Community
Magento Community
Magento Community
 
lennypeng
Jr. Member
 
Total Posts:  17
Joined:  2009-06-07
 

Great! Problem solved. Thanks you very much for the solution.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ondy
Jr. Member
 
Total Posts:  18
Joined:  2010-03-02
 

Hello,
first - I would like to thanks Weis for code change. I had same problem as lennypeng describes and with Weis’s code change I have partial success. If I would like to apply Catalog price rule for more than one customer group the problem persists. If I assign Catalog price rule to more customer groups, behaviour is same as before code change. I found out, that in older version of Observer.php file there wasn’t elseif section - code from older file:

if ($observer->hasCustomerGroupId()) {
            $gId 
$observer->getEvent()->getCustomerGroupId();
        
else {
            $gId 
Mage::getSingleton('customer/session')->getCustomerGroupId();
        
}
so I replaced actual file with older version (anyway from Magento ver. 1.4.0.1, but version I downloaded about month ago) and everything is working fine.
So I would like to ask You, if new elseif section is necessary and if so, if You would check it one more?
Thank You very much in advance and have a nice day grin
 
Magento Community Magento Community
Magento Community
Magento Community
 
gutebotschafter
Jr. Member
 
Total Posts:  5
Joined:  2010-09-22
 

I \"solved\" it temporarily by creating one rule for every user group - works for me fine.
Still annoying!

 
Magento Community Magento Community
Magento Community
Magento Community
 
shaunp
Jr. Member
 
Total Posts:  28
Joined:  2009-07-29
 

Weis,

I’ve replaced the code as described but I still can’t get my rule to work. It did once but after making a change it quit working.

Here are my settings for Rule Information and Actions. I’m keeping it very basic until I can get the rules to start working. Is there something I’m doing wrong in the rule to keep it from working correctly? I’m not getting free shipping on items that cost $299.

Image Attachments
Picture 40.pngPicture 39.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
hridaya
Member
 
Avatar
Total Posts:  63
Joined:  2009-02-04
Nepal
 

Hello, I am using magento CE 1.4.2.0 and i have create the catalouge rule for wholesale group but it shows on product listing page with discounted price according to defined % discount in rule.. its well .

But it does not reflect the description page and checkout as well . As i have already the corrected code as mentioned above .

Please help me what may be the issues.. I am really wondering it

Thank you in advance.

hridaya Ghimire
http://hridaya.com.np

 
Magento Community Magento Community
Magento Community
Magento Community
 
Amag30
Jr. Member
 
Total Posts:  5
Joined:  2011-04-01
 

I have the same issues, but I have version Magento ver. 1.8.0.0

 
Magento Community Magento Community
Magento Community
Magento Community
 
hridaya
Member
 
Avatar
Total Posts:  63
Joined:  2009-02-04
Nepal
 

Solved .. !!!!!!!!!!!!

After i clicked on save and apply rule in admin it works for me..

Thank you
Hridaya

 
Magento Community Magento Community
Magento Community
Magento Community
 
sidneystud
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2011-12-18
 

Stil having the same problem with catalog price rule.
The rule show\\\’s up with a special price on the category and product pages but when adding the product to the shopping cart I get the original price again. running 1.7.0.2 :( anybody?

 
Magento Community Magento Community
Magento Community
Magento Community
 
sidneystud
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2011-12-18
 

This I want to add too: with Shopping cart rules I have the problem that it only works on the not logged in and general group. When trying it for any other gropup (even a single one) the rule is not executed.... going nuts here! :(

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeeveser
Member
 
Total Posts:  37
Joined:  2012-08-01
 

Yep us too. Seems like the price rule “sticks” for a few days and then gets forgotten.

Has this problem been reported to Magento?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeeveser
Member
 
Total Posts:  37
Joined:  2012-08-01
 

BUMP

I’d like a Magento developer to address this issue.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2