File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
app/code/Magento/Quote/Model Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 27
27
* sales_quote_delete_after
28
28
*
29
29
* @method Quote setStoreId(int $value)
30
- * @method Quote setIsVirtual(int $value)
31
30
* @method int getIsMultiShipping()
32
31
* @method Quote setIsMultiShipping(int $value)
33
32
* @method float getStoreToBaseRate()
@@ -556,6 +555,14 @@ public function setIsActive($isActive)
556
555
return $ this ->setData (self ::KEY_IS_ACTIVE , $ isActive );
557
556
}
558
557
558
+ /**
559
+ * {@inheritdoc}
560
+ */
561
+ public function setIsVirtual ($ isVirtual )
562
+ {
563
+ return $ this ->setData (self ::KEY_IS_VIRTUAL , $ isVirtual );
564
+ }
565
+
559
566
/**
560
567
* {@inheritdoc}
561
568
*/
@@ -772,6 +779,9 @@ public function beforeSave()
772
779
$ this ->setCustomerId ($ this ->_customer ->getId ());
773
780
}
774
781
782
+ //mark quote if it has virtual products only
783
+ $ this ->setIsVirtual ($ this ->getIsVirtual ());
784
+
775
785
parent ::beforeSave ();
776
786
}
777
787
You can’t perform that action at this time.
0 commit comments