Skip to content

Commit 219780f

Browse files
author
Claude
committed
Add logoimageurl and themecolor support
1 parent 57b8a89 commit 219780f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Umbraco.Commerce.Deploy/Artifacts/StoreArtifact.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public class StoreArtifact(GuidUdi? udi, IEnumerable<ArtifactDependency>? depend
2121

2222
public GuidUdi? ErrorOrderStatusUdi { get; set; }
2323

24+
public string? LogoImageUrl { get; set; }
25+
26+
public string? ThemeColor { get; set; }
27+
2428
public int MeasurementSystem { get; set; }
2529

2630
public bool PricesIncludeTax { get; set; }

src/Umbraco.Commerce.Deploy/Connectors/ServiceConnectors/UmbracoCommerceStoreServiceConnector.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public override IAsyncEnumerable<StoreReadOnly> GetEntitiesAsync(CancellationTok
6363
{
6464
Name = entity.Name,
6565
Alias = entity.Alias,
66+
LogoImageUrl = entity.LogoImageUrl,
67+
ThemeColor = entity.ThemeColor,
6668
MeasurementSystem = (int)entity.MeasurementSystem,
6769
PricesIncludeTax = entity.PricesIncludeTax,
6870
CookieTimeout = entity.CookieTimeout,
@@ -215,6 +217,10 @@ private async Task Pass1Async(ArtifactDeployState<StoreArtifact, StoreReadOnly>
215217
false);
216218

217219
await entity.SetNameAsync(artifact.Name, artifact.Alias)
220+
.SetThemeSettingsAsync(new StoreThemeSettings{
221+
LogoImageUrl = artifact.LogoImageUrl,
222+
ThemeColor = artifact.ThemeColor
223+
})
218224
.SetMeasurementSystemAsync((MeasurementSystem)artifact.MeasurementSystem)
219225
.SetPriceTaxInclusivityAsync(artifact.PricesIncludeTax)
220226
.SetCartNumberTemplateAsync(artifact.CartNumberTemplate)

0 commit comments

Comments
 (0)