Skip to content

Commit

Permalink
Feature - Hide variant attributes when disabled (#1459)
Browse files Browse the repository at this point in the history
Some PR to remove variant attributes from product type editing when they
have been disabled in the config.
  • Loading branch information
alecritson authored Jan 9, 2024
1 parent 9de517f commit 3b836f3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public static function form(Forms\Form $form): Forms\Form
->relationship(name: 'mappedAttributes')
->label('')
->columnSpan(2),
]),
])->visible(
config('lunar.panel.enable_variants', false)
),

])->columnSpan(2),
]);
Expand Down

0 comments on commit 3b836f3

Please sign in to comment.