File tree Expand file tree Collapse file tree 3 files changed +178
-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 +178
-146
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,14 @@ public function __construct(
78
78
}
79
79
80
80
/**
81
+ * Returns the bundle product options
82
+ * Will return cached options data if the product options are already initialized
83
+ * In a case when $stripSelection parameter is true will reload stored bundle selections collection from DB
84
+ *
85
+ * @param bool $stripSelection
81
86
* @return array
82
87
*/
83
- public function getOptions ()
88
+ public function getOptions ($ stripSelection = false )
84
89
{
85
90
if (!$ this ->options ) {
86
91
$ product = $ this ->getProduct ();
@@ -96,7 +101,7 @@ public function getOptions()
96
101
97
102
$ this ->options = $ optionCollection ->appendSelections (
98
103
$ selectionCollection ,
99
- false ,
104
+ $ stripSelection ,
100
105
$ this ->catalogProduct ->getSkipSaleableCheck ()
101
106
);
102
107
}
You can’t perform that action at this time.
0 commit comments