File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010use OxidEsales \Eshop \Application \Controller \OrderController ;
1111use OxidEsales \Eshop \Application \Controller \PaymentController ;
1212use OxidEsales \Eshop \Application \Controller \Admin \OrderMain ;
13+ use OxidEsales \Eshop \Application \Controller \Admin \OrderArticle ;
1314use OxidEsales \Eshop \Application \Controller \Admin \OrderOverview ;
1415use OxidEsales \Eshop \Application \Model \Article ;
1516use OxidEsales \Eshop \Application \Model \Basket ;
2627use OxidSolutionCatalysts \PayPal \Controller \Admin \PayPalConfigController ;
2728use OxidSolutionCatalysts \PayPal \Controller \Admin \PayPalOrderController ;
2829use OxidSolutionCatalysts \PayPal \Controller \Admin \OrderMain as PayPalOrderMainController ;
30+ use OxidSolutionCatalysts \PayPal \Controller \Admin \OrderArticle as PayPalOrderArticleController ;
2931use OxidSolutionCatalysts \PayPal \Controller \Admin \OrderOverview as PayPalOrderOverviewController ;
3032use OxidSolutionCatalysts \PayPal \Controller \OrderController as PayPalFrontEndOrderController ;
3133use OxidSolutionCatalysts \PayPal \Controller \PaymentController as PayPalPaymentController ;
8183 UserComponent::class => PayPalUserComponent::class,
8284 BasketComponent::class => PayPalBasketComponent::class,
8385 OrderMain::class => PayPalOrderMainController::class,
86+ OrderArticle::class => PayPalOrderArticleController::class,
8487 OrderOverview::class => PayPalOrderOverviewController::class,
8588 State::class => PayPalState::class
8689 ],
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * Copyright © OXID eSales AG. All rights reserved.
5+ * See LICENSE file for license details.
6+ */
7+
8+ namespace OxidSolutionCatalysts \PayPal \Controller \Admin ;
9+
10+ /**
11+ * OrderArticle class
12+ *
13+ * @mixin \OxidEsales\Eshop\Application\Controller\Admin\OrderArticle
14+ */
15+ class OrderArticle extends OrderArticle_parent
16+ {
17+ public function render ()
18+ {
19+ $ parent = parent ::render ();
20+
21+ if ($ order = $ this ->getEditObject ()) {
22+ if ( $ order ->paidWithPayPal () ||
23+ $ order ->paidWithPayPalPlus ()||
24+ $ order ->paidWithPayPalSoap ()
25+ ) {
26+ $ capture = $ order ->getOrderPaymentCapture ();
27+ if (!is_null ($ capture )) {
28+ $ this ->_aViewData ["readonly " ] = true ;
29+ }
30+ }
31+ }
32+
33+ return $ parent ;
34+ }
35+ }
You can’t perform that action at this time.
0 commit comments