Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/code/Magento/DownloadableGraphQl/etc/graphql/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,16 @@
</argument>
</arguments>
</type>

<type name="Magento\StoreGraphQl\Model\Resolver\Store\StoreConfigDataProvider">
<arguments>
<argument name="extendedConfigData" xsi:type="array">
<item name="downloadable_disable_guest_checkout" xsi:type="string">catalog/downloadable/disable_guest_checkout</item>
<item name="downloadable_shareable" xsi:type="string">catalog/downloadable/shareable</item>
<item name="downloadable_links_target_new_window" xsi:type="string">catalog/downloadable/links_target_new_window</item>
<item name="downloadable_samples_title" xsi:type="string">catalog/downloadable/samples_title</item>
<item name="downloadable_links_title" xsi:type="string">catalog/downloadable/links_title</item>
</argument>
</arguments>
</type>
</config>
15 changes: 15 additions & 0 deletions app/code/Magento/DownloadableGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,18 @@ type DownloadableWishlistItem implements WishlistItemInterface @doc(description:
links_v2: [DownloadableProductLinks] @doc(description: "An array containing information about the selected links.") @resolver(class: "\\Magento\\DownloadableGraphQl\\Model\\Wishlist\\ItemLinks")
samples: [DownloadableProductSamples] @doc(description: "An array containing information about the selected samples.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Samples")
}

# Downloadable system configuration for headless / PWA storefronts
# (Stores > Config > Catalog > Downloadable Product Options)
extend type StoreConfig {
downloadable_disable_guest_checkout: Boolean
@doc(description: "catalog/downloadable/disable_guest_checkout: when true, guest checkout is blocked if the cart contains downloadable products.")
downloadable_shareable: Boolean
@doc(description: "catalog/downloadable/shareable: default shareable flag used when a link is set to Use config.")
downloadable_links_target_new_window: Boolean
@doc(description: "catalog/downloadable/links_target_new_window: open sample/download links in a new window.")
downloadable_samples_title: String
@doc(description: "catalog/downloadable/samples_title: default title for the samples section.")
downloadable_links_title: String
@doc(description: "catalog/downloadable/links_title: default title for the links section.")
}