Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 1173

Sitecore Commerce Connect is the Sitecore commerce API for storefront developers and is an integration layer between a front-end webshop solution and a back-end external commerce system.

4 votes

Is there any way to import bunch of new products using OData API in Sitecore Commerce 9?

tl;dr There are import APIs for both catalogs and inventory sets, but they are designed around importing data that was exported from another Commerce Engine installation. Custom imports could be massa …
Richard Szalay's user avatar
3 votes
Accepted

Catalog data disappearing after publishing from the Commerce 9 Engine SDK

It turns out that the Sitecore.Commerce.Engine SDK project doesn't reference the following plugins: Coupons Tax Journaling SQL And since plugins are only loaded if they appear in the Sitecore.Comm …
Richard Szalay's user avatar
1 vote
Accepted

Custom EnttiyView / PropertyView labels are appearing blank in BizFX

The problem here comes down to pipeline block placement. The properties that are used to display the labels in BizFX are actually EntityView.DisplayName, ViewProperty.DisplayName, and ViewProperty.Va …
Richard Szalay's user avatar
3 votes
Accepted

Why are all my product images toasters?

The toaster image is hardcoded (by id!) as a fallback for when the product template does not contain a field named "Images". Not for an empty field value, only when the field missing entirely. The pr …
Richard Szalay's user avatar
1 vote

Building Commerce Engine in VSTS (Hosted VS2017) fails to restore packages

The NuGet task doesn't support the newer Target Framework Monikor mappings required to pull this off. Use the ".NET Core" task and it will build as expected.
Richard Szalay's user avatar
5 votes
Accepted

Remove payment option from Sitecore Commerce and use Commerce as "ordering system"

As of 9.0.1, CreateOrderBlock (the first OOTB block in ICreateOrderPipeline) validates that the payment total equals the grand total of the order and aborts the pipeline if it does not. However, sinc …
Richard Szalay's user avatar
4 votes
Accepted

How to delete Catalog, Category and SellableItems in Sitecore Commerce programatically?

In 9.0.1, you can invoke IRemoveAllCatalogItemsPipeline to delete all catalogs, categories, and sellable items. You can invoke it using Postman via the RemoveAllCatalogItems() API. There are no APIs ( …
Richard Szalay's user avatar
1 vote

Unable to get policy object when running pipeline from Startup class Config method in Commer...

IStartEnvironmentPipeline is run every time the environment process starts, so if you'd like to run some code on startup it's best to define a block for that pipeline. Also, it's a good idea to guard …
Richard Szalay's user avatar
1 vote

Shop 'Storefront' does not exist exception while accessing Sitecore commerce application

There are several reasons why this might be the case: a) If you renamed your storefront item (in. /sitecore/Commerce/Commerce Control Panel/), you need to also change the site name as outlined in thi …
Richard Szalay's user avatar
7 votes
Accepted

"GetCurrentCart: Value cannot be null" when adding item to cart

Edit: Updated code to work around another issue I started investigating the avenue of missing plugins since that caused the previous issues I had, but the issue ended up being much simpler: the Plugi …
Richard Szalay's user avatar
2 votes
Accepted

GetPolicy<T>() returning null, causing NullReferenceException in OOTB functionality

This happens when you create a CommerceContext without assigning it's Environment property (which has no associated constructor argument). Since policies are resolved from the environment, it will ret …
Richard Szalay's user avatar
5 votes
Accepted

Unable to resolve service for type 'IPipelineConfiguration' while attempting to activate 'Cu...

The short answer is that the custom pipeline needs to accept the argument as IPipelineConfiguration<ICustomPipelineInterface> When you configure a pipeline via pipelines.AddPipeline<T,K> or pipelines …
Richard Szalay's user avatar
3 votes
Accepted

Cart always has 0 total

It turns out that this was another issue caused by critical pipeline code being defined in a sample plugin that I outlined in this question. Basically, the cart plugin itself only registers two block …
Richard Szalay's user avatar
5 votes

Updating stock balance in the inventory catalog

There's no simple "Set product X to inventory Y" command or pipeline, but here's how we've done it. I've included stubs for handling variants, but not the code that actually loads the variant. I pref …
Richard Szalay's user avatar
1 vote
Accepted

NU1603 adding Sitecore.Commerce.Plugin.Orders package

tl;dr Explicitly add Sitecore.Commerce.Plugin.Catalog 2.1.10 to the project and then re-add the intended package. For whatever reason, Sitecore never published 2.1.9 of Sitecore.Commerce.Plugin.Catal …
Richard Szalay's user avatar

15 30 50 per page