2

I have a order that is in status processing but issue is i cannot find these buttons missing ship, hold, creditmemo and sendmail, please find the below link.

enter image description here

This is only for some products in order. But iam unable to find the issue and unable to find the difference between product which are ship and not-shipable.

can anyone help me on this issue. thanks

  • Could you share a full order view screenshot? – Siarhey Uchukhlebau Jul 26 '17 at 6:34
  • ok just a minute – Raghu Jul 26 '17 at 6:35
  • please find my updated question , you can find the full screenshot thanks – Raghu Jul 26 '17 at 6:41
  • Is your product in stock? Maybe this product is just backordered and can't be shipped because there is not enough stock items. – Siarhey Uchukhlebau Jul 26 '17 at 7:27
  • our code is----if the product has 0 or less than 0 then it will display backorder – Raghu Jul 26 '17 at 7:29
1

I cant say something about a custom code, but first try to check what happens in the base order methods like:

  • canCreditmemo()
  • canShip()
  • etc.

in the class Mage_Sales_Model_Order (app/code/core/Mage/Sales/Model/Order.php)

because all buttons adds in the block-class Mage_Adminhtml_Block_Sales_Order_View (app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php) and each of them has an own conditions. If conditions do not met - button is hidden, and vice versa.

  • ok thanks but only some of the orders having this issue – Raghu Jul 26 '17 at 8:18
  • @EwallTester Write in the block file something like var_dump($this->_isAllowedAction('emails')); var_dump(!$order->isCanceled()); die(); before the line if ($this->_isAllowedAction('emails') && !$order->isCanceled()) { then refresh the page with your "broken" order and check a result. There is two cases: 1) Not enough permissions 2) Order is canceled. If all vardums show true your button should be shown (when you remove this code). If this is not the case, then most likely the problem is with the third-party module that overwrites the block. – Siarhey Uchukhlebau Jul 26 '17 at 8:42
  • in which file should keep this – Raghu Jul 26 '17 at 8:43
  • @EwallTester block file is located in app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php – Siarhey Uchukhlebau Jul 26 '17 at 8:44
  • ok i will keep this update the result..thanks – Raghu Jul 26 '17 at 8:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.