File tree Expand file tree Collapse file tree 3 files changed +179
-146
lines changed
Block/Catalog/Product/View/Type
Test/Unit/Block/Catalog/Product/View/Type
view/adminhtml/templates/product/composite/fieldset/options Expand file tree Collapse file tree 3 files changed +179
-146
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,15 @@ public function __construct(
78
78
}
79
79
80
80
/**
81
+ *
82
+ * Returns the bundle product options
83
+ * Will return stored options data if the product options are already initialized
84
+ * In a case when $stripSelection parameter is true will reset stored bundle selections collection
85
+ *
86
+ * @param bool $stripSelection
81
87
* @return array
82
88
*/
83
- public function getOptions ()
89
+ public function getOptions ($ stripSelection = false )
84
90
{
85
91
if (!$ this ->options ) {
86
92
$ product = $ this ->getProduct ();
@@ -96,7 +102,7 @@ public function getOptions()
96
102
97
103
$ this ->options = $ optionCollection ->appendSelections (
98
104
$ selectionCollection ,
99
- false ,
105
+ $ stripSelection ,
100
106
$ this ->catalogProduct ->getSkipSaleableCheck ()
101
107
);
102
108
}
You can’t perform that action at this time.
0 commit comments