Skip to content

Commit 7e17a5a

Browse files
authored
Merge pull request #32 from umbraco/feature/shopify-product-id
Issue #31 - return product id
2 parents 8cb1544 + 10785e0 commit 7e17a5a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Umbraco.Cms.Integrations.Commerce.Shopify/Editors/ShopifyProductPickerValueConverter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public override object ConvertIntermediateToObject(IPublishedElement owner, IPub
5656
where ids.Contains(p.Id)
5757
select new ProductViewModel
5858
{
59+
Id = p.Id,
5960
Title = p.Title,
6061
Body = p.Body,
6162
Image = p.Image.Src

src/Umbraco.Cms.Integrations.Commerce.Shopify/Models/ViewModels/ProductViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ namespace Umbraco.Cms.Integrations.Commerce.Shopify.Models.ViewModels
33
{
44
public class ProductViewModel
55
{
6+
public long Id { get; set; }
7+
68
public string Title { get; set; }
79

810
public string Body { get; set; }

0 commit comments

Comments
 (0)