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.
And actually updating the cart item...I have no idea how to accomplish that.
Any ideas? help me out plz