diff --git a/src/Listeners/AddFieldsToProductBlueprint.php b/src/Listeners/AddFieldsToProductBlueprint.php index 7e805e2..40b2153 100644 --- a/src/Listeners/AddFieldsToProductBlueprint.php +++ b/src/Listeners/AddFieldsToProductBlueprint.php @@ -23,7 +23,9 @@ public function handle(EntryBlueprintFound $event) $hasDigitalProductFields = collect($productVariantsField->config()['option_fields'] ?? []) ->filter(function ($value, $key) { - return $value['handle'] === 'download_limit' || $value['handle'] === 'downloadable_asset'; + return $value['handle'] === 'is_digital_product' + || $value['handle'] === 'download_limit' + || $value['handle'] === 'downloadable_asset'; }) ->count() > 0;