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

Decrease stock after adding a product to cart
 
joaosvu
Jr. Member
 
Avatar
Total Posts:  7
Joined:  2011-04-08
 

Hi,

I would like to ask for the help of Magento community to solve a problem. I need to know how to decrease stock not after an order is placed but after the product is added to cart. How can I do this programming? Does anybody have an idea? Yes, I know this is not recommended but I’m working on a development of an online store and the customer (store owner) requested this to my boss and I have to do, simply. Please, anybody could help me with this damn idea?

Thousands of thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Enthusiast
 
Avatar
Total Posts:  811
Joined:  2011-07-03
 

Hi,

search and catch with an own observer a event, which is fired when the product is added to cart and then decrease the stock, i think this will help you: http://stackoverflow.com/questions/11139516/cannot-update-stock-item-quantity-for-a-product-in-magento-1-6-2

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top