From e7e724d76cbc598f5c7e098f7e4bf03194dc17e3 Mon Sep 17 00:00:00 2001 From: Matt Brailsford Date: Thu, 3 Apr 2025 11:24:44 +0100 Subject: [PATCH 1/3] Add docs on Ignoring Settings for Umbraco Commerce Deploy --- .../packages/deploy/deploying-changes.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/commerce-add-ons/packages/deploy/deploying-changes.md b/commerce-add-ons/packages/deploy/deploying-changes.md index 63ae052ad5d..9f4f839a92e 100644 --- a/commerce-add-ons/packages/deploy/deploying-changes.md +++ b/commerce-add-ons/packages/deploy/deploying-changes.md @@ -11,3 +11,35 @@ After installing Umbraco Commerce Deploy, it will automatically serialize any ch These files should be committed to your repository. Umbraco Deploy will then monitor these files and automatically deploy changes between environments for you. Learn more about how the deployment process works in the [Umbraco Deploy documentation](https://docs.umbraco.com/umbraco-deploy/). + +## Ignoring Settings + +Some entities in Umbraco Commerce accept configuration settings such as Payment Methods, Shipping Methods and Tax Calculation Methods. These settings can be environment specific and so you may not want to deploy these between environments. In order to prevent this from happing, you can add the following configuration options to your `appsettings.json` file. + +{% code title="appsettings.json" %} + +```json +{ + ... + "Umbraco": { + "Commerce": { + "Deploy": { + "PaymentMethods": { + "IgnoreSettings": [ "liveApiKey", "testMode" ] + }, + "ShippingMethods": { + "IgnoreSettings": [ "liveApiKey", "testMode" ] + }, + "TaxCalculationMethods": { + "IgnoreSettings": [ "liveApiKey", "testMode" ] + } + } + } + } + ... +} +``` + +{% encode %} + +For each supported entity type you can supply an `IgnoreSettings` option which contains an array of aliases of the settings options to be ignored. \ No newline at end of file From d4dd0eeb4515d9339306d1cb5c6439fa19bcb230 Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Fri, 4 Apr 2025 10:26:11 +0200 Subject: [PATCH 2/3] Update commerce-add-ons/packages/deploy/deploying-changes.md --- commerce-add-ons/packages/deploy/deploying-changes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commerce-add-ons/packages/deploy/deploying-changes.md b/commerce-add-ons/packages/deploy/deploying-changes.md index 9f4f839a92e..5196e09df4b 100644 --- a/commerce-add-ons/packages/deploy/deploying-changes.md +++ b/commerce-add-ons/packages/deploy/deploying-changes.md @@ -14,7 +14,7 @@ Learn more about how the deployment process works in the [Umbraco Deploy documen ## Ignoring Settings -Some entities in Umbraco Commerce accept configuration settings such as Payment Methods, Shipping Methods and Tax Calculation Methods. These settings can be environment specific and so you may not want to deploy these between environments. In order to prevent this from happing, you can add the following configuration options to your `appsettings.json` file. +Some entities in Umbraco Commerce accept configuration settings such as Payment Methods, Shipping Methods, and Tax Calculation Methods. These settings can be environment-specific, and therefore, you may not want to deploy them between environments. To prevent this from happening, you can add the following configuration options to your `appsettings.json` file. {% code title="appsettings.json" %} From d086b07155302615489ad49b96dc35e40016b8bd Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Fri, 4 Apr 2025 10:26:16 +0200 Subject: [PATCH 3/3] Update commerce-add-ons/packages/deploy/deploying-changes.md --- commerce-add-ons/packages/deploy/deploying-changes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commerce-add-ons/packages/deploy/deploying-changes.md b/commerce-add-ons/packages/deploy/deploying-changes.md index 5196e09df4b..5c5059cebaf 100644 --- a/commerce-add-ons/packages/deploy/deploying-changes.md +++ b/commerce-add-ons/packages/deploy/deploying-changes.md @@ -42,4 +42,4 @@ Some entities in Umbraco Commerce accept configuration settings such as Payment {% encode %} -For each supported entity type you can supply an `IgnoreSettings` option which contains an array of aliases of the settings options to be ignored. \ No newline at end of file +For each supported entity type, you can supply an `IgnoreSettings` option, which contains an array of aliases of the settings options to be ignored. \ No newline at end of file