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 3 of 3
Magento 1.4-shopping cart price rules -cann’t add to cart
 
cbleicher
Jr. Member
 
Total Posts:  30
Joined:  2010-04-13
 

Hi,
I have the same problem. At the moment we use 1.4.1.1. I tried the custom fixes, but they doesn’t work for me. Does anyone have an idea? Someone already solved the problem?

Regards
Christian

 
Magento Community Magento Community
Magento Community
Magento Community
 
cbleicher
Jr. Member
 
Total Posts:  30
Joined:  2010-04-13
 

Hello again,

some time later we found a solution.

Great thanks to the writer of this blog:
http://mandagreen.com/fixing-catalog-price-rules-cart-issue-in-magento-1-4-1-0/

Hope it helps.

Regards
Christian

 
Magento Community Magento Community
Magento Community
Magento Community
 
herbie22
Jr. Member
 
Total Posts:  5
Joined:  2010-07-30
 

Im also getting the message in my Magento 1.4.1.1 Cannot add to cart.

I have a catalog price rule applied giving discount on a specific payment method ( bank transfer )

I’ve tried the above solution at Mandagreen blog but this isn’t working for me.

However TSdesigns’s suggestion did the trick.

I placed

public function getId()
{
$id = parent::getId();
return $id > 0 ? $id : 1;
}

in app/code/core/mage/sales/model/quote.php just above the /*********************** PAYMENTS ***************************/ lin

I’ve added it and I can finally Add to cart again. When in Checkout the rule is successfully aplied.

Hope this helps someone.

Will this $id solution affect any other things? what exactly is it for? For now everything seems fine. Thanks everybody contributing to this thread.

 
Magento Community Magento Community
Magento Community
Magento Community
 
cbleicher
Jr. Member
 
Total Posts:  30
Joined:  2010-04-13
 

Hi hermie22,

I tried this solution,too. But there is a big problem. Every user that is not logged in and free from cookies will add the products to the same cart. Try it with different computers to add some articles to the cart. You will realize fast that this is not a good solution :-(

Regards
Christian

 
Magento Community Magento Community
Magento Community
Magento Community
 
herbie22
Jr. Member
 
Total Posts:  5
Joined:  2010-07-30
 

Hi Christian and other people still looking for answers,

It seems I was to enthusiastic with my first post. This solution doesn\’t work properly and Christian you\’re right it\’s far from safe.

Im on Magento 1.4.1.1 and the situation is stil the same. I tried the http://mandagreen.com/fixing-catalog-price-rules-cart-issue-in-magento-1-4-1-0/ Fix
but this didn\’t work for me.

My current Observer.php file is:
around line 105

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

changing to $gId = $product->getCustomerGroupId();
had no effect.

I have a catalog price rule applied giving discount on a specific payment method ( bank transfer ).
The rule is applied for non logged in user (customer group “General” (all working fine) . The problem remains for NOT LOGGED IN users. -> Cannot add to cart

The problem surely lays here because when I deavtivate the checkout rule everything is working fine, point is I really want to have this option in my site!

If anybody has some ideas on this issue..I\’d love to hear them, because after 5 hours of trying different things yesterday I don\’t know where to look anymore.

Thanks all!

 
Magento Community Magento Community
Magento Community
Magento Community
 
PavelPolyakov
Sr. Member
 
Total Posts:  98
Joined:  2009-08-17
 

just wanted to say that this solution works for me http://mandagreen.com/fixing-catalog-price-rules-cart-issue-in-magento-1-4-1-0/ .

And another thing - do not try to use the solution above and some another solution at the same time, because I had a problems because of that.
( I was trying to connect it with http://www.magentocommerce.com/boards/viewreply/245011/ ).

 
Magento Community Magento Community
Magento Community
Magento Community
 
PavelPolyakov
Sr. Member
 
Total Posts:  98
Joined:  2009-08-17
 

My previous message was not completely true.
Today I met the situation when I can’t add products to my shopping cart again (taking in attention that it works yesterday).
I thought that it’s because of indexing, but no - nothing happens when I reindexed products.

But when I turned off my shopping cart price rule - it started to work again.
When I turned it on again - it continued to work.

The conclusion is simple - the problem still exists and it can hit your shop any time.

 
Magento Community Magento Community
Magento Community
Magento Community
 
carser86
Jr. Member
 
Total Posts:  11
Joined:  2009-10-08
 

Are there any other solutions?

I tried everything, but I still can’t add some products if I have a shopping cart price rule active.

Best,
Carser

 
Magento Community Magento Community
Magento Community
Magento Community
 
okino
Jr. Member
 
Total Posts:  6
Joined:  2009-12-01
 

I realized that when i set a payment method in onestephekout and then return back to shopping cart there is no problem because a payment method is already set in the session. This problem only occurs if there is no payment method currently set in the session.

I’m currently using PRWD’s AutoShipping module for adding a default shipping fee to the order in the shopping cart. Maybe somebody can alter the code of this module to add a default payment method (e.g. Cash) for shopping cart? I think that would solve the problem as the payment method will be set for the items.

You can check the Auto Shipping module from here: http://www.magentocommerce.com/magento-connect/Rob+Knight/extension/1384/prwd-auto-shipping
It says 1.3 compatibility but it’s working for me in 1.4.1.1

 
Magento Community Magento Community
Magento Community
Magento Community
 
carser86
Jr. Member
 
Total Posts:  11
Joined:  2009-10-08
 

that worked for me. grin

http://www.magentocommerce.com/boards/viewthread/50274/#t177522

I hope you can also fix this problem.

 
Magento Community Magento Community
Magento Community
Magento Community
 
PavelPolyakov
Sr. Member
 
Total Posts:  98
Joined:  2009-08-17
 

This patch has helped me for one store.
http://www.magentocommerce.com/blog/magento-ce-version-1411-stable-patch/

 
Magento Community Magento Community
Magento Community
Magento Community
 
wien173
Jr. Member
 
Total Posts:  8
Joined:  2008-07-26
tokyo
 

(1) http://www.magentocommerce.com/boards/viewthread/50274/#t177522

in app/code/Core / Mage / Sales / Model / Quote.php I inserted the following code in the method _afterSave() :

if (null !== $this->_payments) {
// inserted code start
$this->getPaymentsCollection();
if ($this->getId()) {
foreach ($this->_payments as $payment) {
$payment->setQuote($this);
}
}
// inserted code end
$this->getPaymentsCollection()->save();
}

(2) http://mandagreen.com/fixing-catalog-price-rules-cart-issue-in-magento-1-4-1-0/

By applying the above method, fixed problems; not able to add to cart as logged-in-user or not logged-in user
under condition of the shopping cart price rule discount for bank account payment.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ferozmansuri
Jr. Member
 
Total Posts:  22
Joined:  2011-10-05
 

My issue is that when i add the product, the product get added into the cart but both message get display like

1st message : Cannot add item to shopping cart
and
2nd msg : Given product added to the cart.

My Magento ver. is 1.4.0.1 and i m not logged in.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 3 of 3