{"id":23050837,"url":"https://github.com/geta/epi.commerce.extensions","last_synced_at":"2025-07-18T16:02:44.049Z","repository":{"id":34337376,"uuid":"38257734","full_name":"Geta/EPi.Commerce.Extensions","owner":"Geta","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-16T15:30:23.000Z","size":88,"stargazers_count":1,"open_issues_count":6,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T03:42:38.760Z","etag":null,"topics":["commerce"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Geta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-29T16:21:44.000Z","updated_at":"2025-02-05T16:37:32.000Z","dependencies_parsed_at":"2025-02-08T17:44:37.715Z","dependency_job_id":"66aa995f-09ad-47a5-b8f2-cd4f27e807f7","html_url":"https://github.com/Geta/EPi.Commerce.Extensions","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Geta/EPi.Commerce.Extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FEPi.Commerce.Extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FEPi.Commerce.Extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FEPi.Commerce.Extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FEPi.Commerce.Extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geta","download_url":"https://codeload.github.com/Geta/EPi.Commerce.Extensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FEPi.Commerce.Extensions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265791393,"owners_count":23829159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commerce"],"created_at":"2024-12-15T23:38:50.963Z","updated_at":"2025-07-18T16:02:44.032Z","avatar_url":"https://github.com/Geta.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geta.EPi.Commerce.Extensions\n\n* Master\u003cbr\u003e\n![](http://tc.geta.no/app/rest/builds/buildType:(id:GetaPackages_EPiCommerceExtensions_00ci),branch:master/statusIcon)\n[![Platform](https://img.shields.io/badge/Platform-.NET%204.6.1-blue.svg?style=flat)](https://msdn.microsoft.com/en-us/library/w0x726c2%28v=vs.110%29.aspx)\n[![Platform](https://img.shields.io/badge/Episerver%20Commerce-%2011-orange.svg?style=flat)](http://world.episerver.com/commerce/)\n\n## Description\n\nHelpers and extension methods for Episerver Commerce.\n\n```\nInstall-Package Geta.EPi.Commerce.Extensions\n```\n\n## Features\n\n#### Extension methods for:\n* **EPiServer.Commerce.Catalog.ContentTypes.IAssetContainer** - *get assets of Episerver's default group*\n* **EPiServer.Commerce.Catalog.ContentTypes.BundleContent** - *gets all bundle entries for a bundle*\n* **EPiServer.Commerce.Catalog.ContentTypes.EntryContentBase** - *gets the parent packages, bundles and categories*\n* **EPiServer.Commerce.Order.ILineItem** - *gets Url, FullUrl and Thumbnailurl of an EPiServer.Commerce.Catalog.ContentTypes.EntryContentBase*\n* **EPiServer.Commerce.Catalog.ContentTypes** - *gets the parent categories*\n* **EPiServer.Commerce.Order.IOrderGroup** - *converts decimal to Mediachase.Commerce.Money*\n* **EPiServer.Commerce.Catalog.ContentTypes.PackageContent** - *gets package entries for a package*\n* **Mediachase.Commerce.Pricing.IPriceDetailService** - *saves the MSRP price*\n* **Mediachase.Commerce.Pricing.IPriceService** - *gets the previous price and load the Msrp.*\n* **EPiServer.Commerce.Catalog.ContentTypes.ProductContent** - *gets all variants/SKUs for a product*\n* **EPiServer.Commerce.Catalog.ContentTypes.VariationContent** - *get the url and parent products*\n\n\n## Examples\n\n### Asset\n\n```csharp\nstring image = variant.GetDefaultAsset\u003cIContentImage\u003e();\nIEnumerable\u003cstring\u003e images = variation.GetAssets\u003cIContentImage\u003e();\n```\n\n### Bundle content\n\n```csharp\nIEnumerable\u003cContentReference\u003e GetBundleEntries(this BundleContent bundleContent);\nIEnumerable\u003cContentReference\u003e GetBundleEntries(this BundleContent bundleContent, IRelationRepository relationRepository);\n```\n\n### Entry content\n\n```csharp\nIEnumerable\u003cContentReference\u003e GetPackages(this EntryContentBase entryContent);\nIEnumerable\u003cContentReference\u003e GetPackages(this EntryContentBase entryContent, IRelationRepository relationRepository);\n\nIEnumerable\u003cContentReference\u003e GetBundles(this EntryContentBase entryContent);\nIEnumerable\u003cContentReference\u003e GetBundles(this EntryContentBase entryContent, IRelationRepository relationRepository);\n\nIEnumerable\u003cContentReference\u003e GetParentCategories(this EntryContentBase entryContent);\nIEnumerable\u003cContentReference\u003e GetParentCategories(this EntryContentBase entryContent, IRelationRepository relationRepository);\n```\n\n### LineItem\n\n```csharp\nstring url = lineItem.GetUrl();\nstring fullUrl = lineItem.GetFullUrl();\nstring thumbnail = lineItem.GetThumbnailUrl();\n```\n\n## Cart\n\n```csharp\nvoid AddValidationIssues(this Dictionary\u003cILineItem, List\u003cValidationIssue\u003e\u003e issues, ILineItem lineItem, ValidationIssue issue);\nbool HasItemBeenRemoved(this Dictionary\u003cILineItem, List\u003cValidationIssue\u003e\u003e issuesPerLineItem, ILineItem lineItem);\n```\n\n### Node content\n\n```csharp\nIEnumerable\u003cContentReference\u003e GetParentCategories(this NodeContent nodeContent);\nIEnumerable\u003cContentReference\u003e GetParentCategories(this NodeContent nodeContent, IRelationRepository relationRepository)\n```\n\n### Package content\n\n```csharp\nIEnumerable\u003cContentReference\u003e GetPackageEntries(this PackageContent packageContent);\nIEnumerable\u003cContentReference\u003e GetPackageEntries(this PackageContent packageContent, IRelationRepository relationRepository);\n```\n\n### Price detail service\n\n[MSRP](https://en.wikipedia.org/wiki/List_price) (list price/manufacturer's suggested retail price)\n\n```csharp\nSaveMsrp(this IPriceDetailService priceDetailService, ContentReference contentLink, MarketId marketId, Currency currency, decimal amount);\n```\n\n### Price service\n\n[MSRP](https://en.wikipedia.org/wiki/List_price) (list price/manufacturer's suggested retail price)\n\n```csharp\nIPriceValue LoadMsrp(this IPriceService priceService, ContentReference contentLink, MarketId marketId, Currency currency);\n\n// Example usage: Was 1000 now only 800\nIPriceValue GetPreviousPrice(this IPriceService priceService, ContentReference contentLink, MarketId marketId, Currency currency);\n```\n\n### Product content\n\n```csharp\nIEnumerable\u003cContentReference\u003e GetVariations(this ProductContent productContent);\nIEnumerable\u003cContentReference\u003e GetVariations(this ProductContent productContent, IRelationRepository relationRepository);\n```\n\n### VariantContent\n\n```csharp\nstring url = variant.GetUrl();\nIEnumerable\u003cContentReference\u003e GetProducts(this VariationContent variationContent, IRelationRepository relationRepository);\nIEnumerable\u003cContentReference\u003e GetProducts(this VariationContent variationContent);\n```\n\n## Package maintainer \nhttps://github.com/frederikvig\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeta%2Fepi.commerce.extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeta%2Fepi.commerce.extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeta%2Fepi.commerce.extensions/lists"}