Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
Add additional handle to check
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Nov 21, 2023
1 parent 90883ee commit 73a7350
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Listeners/AddFieldsToProductBlueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 73a7350

Please sign in to comment.