Hide variation related notices when product type is not variable (#49400)
* Hide variation related notices when product type is not variable
* Revert "Hide variation related notices when product type is not variable"
This reverts commit 66a67b6ada
.
* Hide variation related notices when product type is not variable
This commit is contained in:
parent
67ecc95633
commit
af571585b6
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Hide variation related notices when product type is not variable
|
|
@ -35,8 +35,11 @@ export function Edit( {
|
|||
'attributes'
|
||||
);
|
||||
|
||||
const [ productType ] = useEntityProp( 'postType', 'product', 'type' );
|
||||
|
||||
const isOptionsNoticeVisible =
|
||||
hasAttributesUsedForVariations( productAttributes );
|
||||
hasAttributesUsedForVariations( productAttributes ) &&
|
||||
productType === 'variable';
|
||||
|
||||
return (
|
||||
<div { ...blockProps }>
|
||||
|
|
Loading…
Reference in New Issue