Magento – How to make magento/checkout/cart/ input readonly and disable UPDATE button

addtocartmagento-1.9

I update the QTY based on case_size of a product. I've made an observer to do that. If the case_size is 144 and a customer buys two cases then QTY will automatically become 288PCS. When the customer clicks the Edit button then the product QTY on the add to cart page goes back to 2 case. Everything is working good, but when a customer edits the QTY see (image) then everything goes wrong of course!!

I want to remove the UPDATE button and make the QTY input readonly but until now no luck.

I've tried app\design\frontend\base\default\template\checkout\cart.phtml but it works on the magento/checkout/cart/configure page not on magento/checkout/cart/ (see image)

Any tips would be highly appreciated.

Thank you all

magento/checkout/cart/

Best Answer

To finalize the question Mr.Abdul has answered me and after change everything is working as expected.

So the problem is solved. Thank you Mr. Abdul and everyone else.

Related Topic