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

Update button on cart
 
Pablo Lopez
Member
 
Avatar
Total Posts:  51
Joined:  2008-01-17
 

Hi everyone.
I’m trying to make an update button on the cart. Same idea as the delete button that is currently on magento, but instead of deleting, updating.
How can I do that?
I made my own getItemUpdateUrl(); on mage/checkout/block/cart.php , using something like this

public function getItemUpdateUrl(Mage_Sales_Model_Quote_Item $item)
    
{
        
return $this->getUrl('checkout/cart/update', array('id'=>$item->getId() , 'value'=>$this->getItemQty($item)));
    
}

The problem is that getItemQty() doesn’t get the value of the form (obviously).So I’m stucked with that.

So how about doing some javascript function for that? any ideas…

And actually updating the cart item...I have no idea how to accomplish that.

Any ideas? help me out plz

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