Questions tagged [commerce-engine]

The Commerce Engine is a thin ASP.NET Core application that serves as a host for a group of microservices that enable commerce functionality. All questions related to engine configuration and implementation should use this tag.

Filter by
Sorted by
Tagged with
16
votes
1answer
4k views

How to start development with Sitecore Commerce 9 / Sitecore Commerce 9 Learning Resources

I am new to Sitecore Experience Commerce (SXC) 9 development and want to embrace the whole platform. Where should I start? What should I learn, watch & read? Where can I find help if I need ...
8
votes
1answer
257 views

Sitecore Commerce Upgrade path

Sitecore regularly provides new releases for Sitecore Commerce and Upgrade Guides. As far as I can see, if you need to upgrade XC 9 Initial Release to the latest version, you need to upgrade Commerce ...
6
votes
1answer
243 views

How to refer to types declared in other plugins

I have been following Akshay's video tutorials about SXC, the last one about creating a minion: https://www.konabos.com/blog/creating-a-minion-for-sitecore-commerce-xc-9/. In this tutorial he creates ...
5
votes
1answer
454 views

Updating stock balance in the inventory catalog

When updating the stock balance in a catalog I have found this pipeline to help me do that. UpdateItemAvailabilityPipeline In order to use that I need to know the name of the product catalog, the ...
5
votes
1answer
557 views

Unable to resolve service for type 'IPipelineConfiguration' while attempting to activate 'CustomPipeline'

I've defined a custom pipeline in my ConfigureSitecore, but when I run the engine I get the following error: InvalidOperationException: Unable to resolve service for type 'Sitecore.Framework....
5
votes
1answer
167 views

Cart always has 0 total

Since setting up a Commerce 9 development environment, I've noticed an issue in which the totals for the cart are always 0. I've customised the currencies across the board, but I've not specifically ...
4
votes
1answer
655 views

Products need USD price to be added to cart

I'm using Sitecore 9.0 Update 1 and XC9 Update 1 in a project for a European customer. We created our own environment based on the OOTB Habitat-environment. In the config-file we set EUR to be the ...
4
votes
2answers
459 views

InitializeEnvironment Postman script always returned the status as "WaitingForActivation"

Whenever i tried to trigger InitializeEnvironment Postman script.. {{OpsApiHost}}/{{OpsApi}}/InitializeEnvironment(environment='{{Environment}}') I always get below as a response. { "@odata....
4
votes
1answer
393 views

Failed to persist profile to underlying stores

I have completed the Sitecore Commerce 8.2.1 setup. When I try to register a user on the live site, it shows this error on page: Failed to persist profile to underlying stores I have verified the ...
4
votes
1answer
366 views

Unintentional parallel minions

If the workload of a minion takes longer time than it's WakeupInterval, in order to avoid getting a second copy of the same minion processing the same list, is there a way to know if there is a ...
3
votes
2answers
736 views

Add localization to entity

How to add DisplayName in another language version from code? createCategoryCommand.Process(context, category.ParentCatalogId, category.Name, category.DisplayName, category.Description); commands ...
3
votes
4answers
2k views

Sitecore Experience Commerce XC 9.0.2 installation error (at Get Token From Sitecore.IdentityServer)

I've tried section (d) from this blog: https://himadritechblog.wordpress.com/2018/03/10/yet-another-sitecore-commerce-9-installation-blog-post/ And this blog: https://naveed-ahmad.com/2018/02/25/...
3
votes
1answer
214 views

How do I configure my commerce engine XC9 (running in the Shops API) to write logs locally?

I have none. I assume they should be here? C:\inetpub\wwwroot\CommerceShops_Sc9\wwwroot\logs
3
votes
3answers
621 views

How to import data from Commerce server to Sitecore Commerce 9.0?

We are using Commerce Server 11.0 in Sitecore 8.1 update 1 and want to upgrade it to Sitecore XC 9.0 update 1. How can I import all the Products from the Commerce Server to Sitecore Commerce engine? ...
3
votes
3answers
372 views

Get / Delete parent category relationships of SellableItem

I've created a plugin for updating sellable items based on data from an external system. One of the things I need to handle is the case where a SellableItem is moved from Category x to Category y in ...
3
votes
2answers
1k views

Sitecore Experience Commerce 9.0 installation error on Installing module: Sitecore Commerce ExperienceAnalytics Core

Been stuck here for a while... Installing Sitecore Experience Commerce 9.0 Update-2 on Sitecore XP 9.0.2 This is my first time installing XC. The script used is shown after the log. This is the error ...
3
votes
1answer
134 views

Reset-ItemField failing silently

I'm (trying to) using Reset-ItemField to remove broken workflow links. While no error is shown in the console, the relevant fields are not changed. $counter = 0 Get-Item -Path :master -Query "/...
3
votes
1answer
648 views

Add category into a catalog programatically

How can I add a category programatically ? In postman are examples how to add category into a catalog or how to add a subcategory. When I am calling AddCategory I am receiving next exception: { ...
3
votes
1answer
224 views

Commerce Engine 9.2 Visual Studio Development Environment setup issue

I'm trying to set up Commerce Engine v9.2 Visual Studio Development Environment. Previously, I did install and configure the Sitecore Experience Commerce v9.2 locally and I did get the issue. I did ...
3
votes
2answers
380 views

Sitecore Experience Commerce. Create catalog from code

Is there a way to create catalog/product from commerce API? In postman I found example "Add Catalog" but it uses "DoUxActionsaction instead of some REST method like [POST] /Catalogs I managed to ...
3
votes
1answer
448 views

Sitecore Commerce - Transactions are not going through when using remote server

I have installed Sitecore Commerce 8.2.1 in our DEV environment. The database is in a remote server. When we click on the "Add to cart" button it throws these exceptions: [SQL:block:...
3
votes
0answers
253 views

New Client for Identity Server

I am trying to create new client using client_credentails grant but i am unable to do that { "ClientId": "integrations", "ClientSecrets": [ "secret", "...
2
votes
2answers
1k views

Getting "Status Code: 401; Unauthorized" when bootstraping Sitecore Commerce 9

I am trying to upgrade Sitecore Commerce 9 Initial Release to Update 1. One of the steps is to do bootstrap in Postman. When I do it, I am getting this exception: Status Code: 401; Unauthorized ...
2
votes
2answers
175 views

Unable to run the Sitecore Commerce Engine and plugins from visual studio

I am using sitecore XC 9.2 and trying to run the commerce engine project from Visual Studio following the process mentioned here: https://medium.com/@siddharaju.s/debugging-sitecore-commerce-engine-...
2
votes
2answers
361 views

Engine ProxyService shopcontainer threw an exception of type 'System.MissingMethodException'

Software used-> Sitecore Commerce version 9.2, VS2019 We are using Unchase OData Connection service to generate/update service proxy in VS2019. Official OData provider for VS2017 (OData v4 Client ...
2
votes
1answer
643 views

Unable to retrieve a Sitecore Item

I am trying to retrieve a Sitecore.Data.Items.Item using this line: var myItem = Context.Database.GetItem("/sitecore/content/x"); but instead of an Item I get a null exception. I have also tried ...
2
votes
1answer
82 views

How to create a new InventorySku?

I am using the IGetInventorySkuPipeline to get hold of an InventorySku object. If I get one, then I want to modify and save it and if I don't get one (for the productId I send down the pipeline), then ...
2
votes
1answer
242 views

How to get a minion to run at a certain time rather than at an interval

Lets say I want my minion to run once every hour then I config this in the Environment file. { "$type": "Sitecore.Commerce.Core.MinionPolicy, Sitecore.Commerce.Core", "WakeupInterval": "01:...
2
votes
1answer
163 views

Commerce configuration files CD server

What files from Commerce should be enabled/disabled on a Content Delivery server. I can see all files from folder : App_Config\Include\Y.Commerce.Engine use a rule-based configuration like : <...
2
votes
1answer
491 views

Getting LineIsNotPurchasable error from commerce engine

I'm facing a strange error from commerce engine v. 8.2.1 If I add a product to cart as guest, all the pipelines work flawlessly and the product is added to the cart. Instead, as a registered user, ...
2
votes
1answer
55 views

Get location and user specific prices

We need to get location and user-specific prices in the SXA Storefront. These prices should also be available when calling the Commerce Engine directly for headless scenarios. We add XDB facets to the ...
2
votes
1answer
64 views

Automated index document merge complains about invalid index name but index names are valid

I get thousands of the following error in the minions log: 00007 09:21:07 ERROR AzureContextCommand.MergeOrUploadDocuments.Error: Message=Index name must only contain lowercase letters, digits or ...
1
vote
2answers
479 views

How do I create a custom managed list?

I saw from the docs that sitecore commerce has a managed list feature that can be used to mantain and return a list of entity (CommerceEntity). I have been used it to get the list of pending orders ...
1
vote
1answer
280 views

How can I unit test a sitecore commerce engine plugin?

The documentation is not rich of information IMHO and, about this topic, I haven't found anything, at least in the version 8.2.1 (version I'm using). In commerce 9 docs there is only a little ...
1
vote
1answer
75 views

Checkbox showing on Bizfx but not in Sitecore

I am able to see Checkbox on Bizfx but when I do the Update Data Templates in Sitecore then its showing Single-Line Text rather than a Checkbox This is the code to add a property. I have declared it ...
1
vote
1answer
2k views

Activation error occured while trying to get instance of type ICacheManager

I have a sitecore commerce site in my local machine and when I click the 'Book Now' button on the website, it shows this error message: GetCurrentCart: Activation error occured while trying to get ...
1
vote
2answers
521 views

How to Debug Default Sitecore Commerce Engine Plugin?

I found several posts on how to debug Customer Sample Solution or the new plugin we created. Could someone suggest me the step-by-step guide to debug the default (original) plugin in Sitecore ...
1
vote
1answer
109 views

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

It was my understanding that calling context.GetPolicy<T>() would create an instance of the policy if it wasn't attached to the environment, however I'm seeing the opposite in a pipeline block ...
1
vote
1answer
76 views

How can I extend products with a custom property in Storefront

How can I access a custom policy that I add in a Commerce Engine pipeline block in the Storefront, and extend Sitecore.Commerce.XA.Foundation.Catalog.Models.ProductSummaryViewModel with fields from ...
1
vote
1answer
109 views

Sitecore Commerce Caching - Why an API?

I need to learn about Caching in Sitecore Commerce and have been reading the documentation here https://doc.sitecore.com/developers/90/sitecore-experience-commerce/en/caching.html As a developer used ...
1
vote
1answer
60 views

Sitecore.Commerce.Plugin.Catalog 2.1.9 was not found

When attempting to add a NuGet reference to Sitecore.Commerce.Engine.Orders, version 2.1.5, I get the following error: NU1603: Sitecore.Commerce.Plugin.Availability 2.1.3 depends on Sitecore.Commerce....
1
vote
1answer
131 views

Troubleshoot Sitecore Commerce SXA Customer Registration Component

I have a Sitecore Habitat Commerce Instance installed in my machine and everything is working fine. I would like to extend the ICreateCustomerPipeline to include a block to call my loyalty program. ...
1
vote
1answer
485 views

Get entity by sitecoreId

How to find entity by sitecoreId ? When I query for all categories, return model looks like this { "CompositeKey": null, "CreatedBy": "sitecore\\Admin", "UpdatedBy"...
1
vote
1answer
195 views

No decimal place in price card snapshots?

I'm working on a project where we are using Sitecore Experience Commerce 9.0 Update-1. When I try to add a price to a sellable-item, I have the problem, that I cannot save prices with decimal places. ...
1
vote
1answer
51 views

Sitecore Commerce 10.1 - Sitecore.Commerce.Engine in Customer.Sample.Solution does not run

I have installed Sitecore 10.1 & Sitecore Commerce 10.1 in my local machine and trying to run the example Customer.Sample.Solution. The solution builds without any errors. The following changes ...
1
vote
1answer
69 views

Sitecore Commerce with Salesforce

I am looking to send Sitecore Commerce product data to Salesforce. Has anyone done something similar to that. There is FuseIT which can be used to send data to Salesforce but I am not sure if it can ...
1
vote
0answers
103 views

Is there an OOTB option to show prices including taxes?

We are setting up a Sitecore Commerce 9.1 application. By default, prices for products are shown excluding taxes (net price). Is there an option to show prices including taxes out-of-the-box, or ...
1
vote
0answers
49 views

Trigger EA plan when Sitecore Commerce 8.2.1 orders change status?

I work with Sitecore 8.2 Update-5 and Sitecore Commerce 8.2.1. Is it possible to trigger an EA plan when an order is updated with a new status? Let's say I want to trigger a EA plan that sends an ...
1
vote
1answer
55 views

Get information about parent categories

Short information about my environment: Sitecore 8.2.1 Sitecore Commerce 8.2.0 (Initial Release) Hi! I need to implement a custom condition for promotions. I need to get information regarding the ...
0
votes
1answer
266 views

Basic understanding of the authoring.json file

I got a task to rename all the namespaces in a solution according to a new namespace strategy and after I was done the solution builds and starts but when I try to bootstrap the updated ...