File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/code/Magento/ConfigurableProduct/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,10 @@ public function modifyData(array $data)
49
49
*/
50
50
public function modifyMeta (array $ meta )
51
51
{
52
- if ($ groupCode = $ this ->getGroupCodeByField ($ meta , ProductAttributeInterface::CODE_PRICE )
53
- ?: $ this ->getGroupCodeByField ($ meta , self ::CODE_GROUP_PRICE )
54
- ) {
52
+ $ groupCode = $ this ->getGroupCodeByField ($ meta , ProductAttributeInterface::CODE_PRICE )
53
+ ?: $ this ->getGroupCodeByField ($ meta , self ::CODE_GROUP_PRICE );
54
+
55
+ if ($ groupCode && !empty ($ meta [$ groupCode ]['children ' ][self ::CODE_GROUP_PRICE ])) {
55
56
if (!empty ($ meta [$ groupCode ]['children ' ][self ::CODE_GROUP_PRICE ])) {
56
57
$ meta [$ groupCode ]['children ' ][self ::CODE_GROUP_PRICE ] = array_replace_recursive (
57
58
$ meta [$ groupCode ]['children ' ][self ::CODE_GROUP_PRICE ],
@@ -71,7 +72,9 @@ public function modifyMeta(array $meta)
71
72
]
72
73
);
73
74
}
74
- if (!empty ($ meta [$ groupCode ]['children ' ][self ::CODE_GROUP_PRICE ])) {
75
+ if (
76
+ !empty ($ meta [$ groupCode ]['children ' ][self ::CODE_GROUP_PRICE ]['children ' ][self ::$ advancedPricingButton ])
77
+ ) {
75
78
$ productTypeId = $ this ->locator ->getProduct ()->getTypeId ();
76
79
$ visibilityConfig = ($ productTypeId === ConfigurableType::TYPE_CODE )
77
80
? ['visible ' => 0 , 'disabled ' => 1 ]
You can’t perform that action at this time.
0 commit comments