You can achieve this $this->getRequest()->getParams(); will get you the all parameters If you want to get specific param $this->getRequest()->getParam('something'); In your case, It should be like this $this->getRequest()->getParam('item_id'); I hope this will help


Minicart is dynamic and loaded via KnockoutJS ,I believe, which means the count will be updated once the DOM is loaded and JS is executed


For me Its not good to use the object manager. Instead you can use the Magento\Sales\Model\OrderRepository to load the order You can use the get($entityId) method . And then you can try $order->addCommentToStatusHistory($comment, $status = false, $isVisibleOnFront = false); $order->save() . Note addStatusToHistory addStatusHistoryComment are ...

Only top voted, non community-wiki answers of a minimum length are eligible