Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 4b38fbd

Browse files
ignat-sserhiicherepanov
authored andcommitted
EL-83: Add shopping cart management to Oro Bridge
- fix typo Conflicts: app/code/community/Oro/Api/Model/Observer/Crm/Controller.php var/connect/Oro_Api-1.1.4.3.tgz var/connect/Oro_Api.xml
1 parent a3604d0 commit 4b38fbd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/code/community/Oro/Api/Model/Observer/Crm/Controller.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ public function handleRenderLayout(Varien_Event_Observer $observer)
8787
$this->_insertBlock('oro_check_script', $layout);
8888

8989
if (Mage::helper('oro_api')->isOroRequest()) {
90+
// Remove back button on Manage Shopping Cart of Customer if it's rendered in Oro Request.
91+
if (class_exists('Enterprise_Checkout_Block_Adminhtml_Manage') &&
92+
($manageBlock = $layout->getBlock('ID')) instanceof Enterprise_Checkout_Block_Adminhtml_Manage
93+
) {
94+
$manageBlock->removeButton('back');
95+
}
96+
9097
if (($contentBlock = $layout->getBlock('content')) instanceof Mage_Adminhtml_Block_Sales_Order_Create) {
9198
$contentBlock->removeButton('reset');
9299

0 commit comments

Comments
 (0)