Skip to content

Commit

Permalink
test version
Browse files Browse the repository at this point in the history
  • Loading branch information
robinfritze committed Nov 6, 2024
1 parent 3cc2530 commit 9578884
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
18 changes: 15 additions & 3 deletions extensions/product-discount/src/run.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
query RunInput {
discountNode {
metafield(namespace: "$app:product-discount", key: "function-configuration") {
value
cart {
deliveryGroups {
deliveryAddress {
countryCode
}
}
cost {
totalAmount {
amount
currencyCode
}
totalTaxAmount {
amount
currencyCode
}
}
}
}
6 changes: 5 additions & 1 deletion shopify.app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ embedded = true

[access_scopes]
# Learn more at https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
scopes = ""
scopes = "write_discounts"

[auth]
redirect_urls = [ "https://shopify.dev/apps/default-app-home/api/auth" ]
Expand All @@ -18,3 +18,7 @@ api_version = "2024-10"

[pos]
embedded = false

[build]
include_config_on_deploy = true
dev_store_url = "product-discount-taxamount.myshopify.com"

0 comments on commit 9578884

Please sign in to comment.