File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
GiftMessage/view/frontend/web/js/view Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- *
4
3
* Copyright © Magento, Inc. All rights reserved.
5
4
* See COPYING.txt for license details.
6
5
*/
7
6
namespace Magento \Checkout \Controller \Cart ;
8
7
9
8
use Magento \Checkout \Model \Cart \RequestQuantityProcessor ;
10
9
use Magento \Framework \App \Action \HttpPostActionInterface ;
10
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
11
11
12
- class UpdatePost extends \Magento \Checkout \Controller \Cart implements HttpPostActionInterface
12
+ /**
13
+ * Post update shopping cart.
14
+ */
15
+ class UpdatePost extends \Magento \Checkout \Controller \Cart implements HttpGetActionInterface, HttpPostActionInterface
13
16
{
14
17
/**
15
18
* @var RequestQuantityProcessor
Original file line number Diff line number Diff line change @@ -31,17 +31,16 @@ define([
31
31
32
32
this . itemId = this . itemId || 'orderLevel' ;
33
33
model = new GiftMessage ( this . itemId ) ;
34
- giftOptions . addOption ( model ) ;
35
34
this . model = model ;
35
+ this . isResultBlockVisible ( ) ;
36
+ giftOptions . addOption ( model ) ;
36
37
37
38
this . model . getObservable ( 'isClear' ) . subscribe ( function ( value ) {
38
39
if ( value == true ) { //eslint-disable-line eqeqeq
39
40
self . formBlockVisibility ( false ) ;
40
41
self . model . getObservable ( 'alreadyAdded' ) ( true ) ;
41
42
}
42
43
} ) ;
43
-
44
- this . isResultBlockVisible ( ) ;
45
44
} ,
46
45
47
46
/**
You can’t perform that action at this time.
0 commit comments