getLayout()->getBlock('product.info'); if ($block) { $block->setSubmitRouteData(array( 'route' => 'checkout/cart/updateItemOptions', 'params' => array('id' => $this->getRequest()->getParam('id')) )); } // Set custom template with 'Update Cart' button $block = $this->getLayout()->getBlock('product.info.addtocart'); if ($block) { $block->setTemplate('checkout/cart/item/configure/updatecart.phtml'); } return parent::_prepareLayout(); } }