Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [commerce-engine]

The tag has no usage guidance.

1
vote
1answer
28 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. ...
2
votes
1answer
55 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 ...
1
vote
0answers
32 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
65 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 ...
1
vote
1answer
92 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
87 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 ...
3
votes
2answers
92 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
0answers
56 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", "...
0
votes
1answer
49 views

How to check Node Configuration in Commerce Engine before Installing the SXC itself?

For some reasons, I need to compare a Node configuration between one version of Sitecore Experience Commerce and another version. Let's say I have only installed SXC 8.2.1 Update 2 and I haven't ...
5
votes
1answer
135 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 ...
0
votes
0answers
197 views

Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException in Sitecore.Commerce.Engine

I am trying to setup my Visual studio for Commerce Engine Custom Plug-in Development. I am getting the below error while trying to run Commerce Engine (Sitecore Experience Commerce 9.0 update 2). [...
4
votes
1answer
246 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 ...
1
vote
0answers
111 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 ...
3
votes
2answers
90 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 ...
2
votes
3answers
405 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
2answers
200 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 ...
0
votes
0answers
28 views

Cart has no fulfillment error

We are using Sitecore Commerce 8.2.1 and the site is live already. The products sold are digital tickets. Some of the orders are failing and there is this error on page when user places an order. [...
3
votes
3answers
237 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? ...
11
votes
1answer
1k 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 ...
2
votes
2answers
88 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....
0
votes
0answers
31 views

Prices of products in Commerce Server with comma separator decimal values not Indexed properly

In the Commerce Server Catalog Manager the Prices of Products are shown with comma separated(12,33) rather than point or decimal separated(12.33). When this get indexed in Solr we the prices are ...
4
votes
1answer
162 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 ...
3
votes
1answer
106 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:...
2
votes
1answer
79 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 : <...
1
vote
1answer
90 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
77 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 ...
3
votes
1answer
200 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: { ...
1
vote
1answer
197 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 ...
2
votes
1answer
65 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 ...
0
votes
1answer
34 views

NU1603 adding Sitecore.Commerce.Plugin.Orders package

While adding a package reference to Sitecore.Commerce.Plugin.Orders, I see the following error: NU1603: Sitecore.Commerce.Plugin.Availability 2.1.3 depends on Sitecore.Commerce.Plugin.Catalog (>= 2....
3
votes
1answer
215 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 ...
2
votes
1answer
180 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, ...
0
votes
1answer
70 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 ...
5
votes
1answer
87 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 ...
1
vote
2answers
450 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 ...
4
votes
1answer
164 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....
4
votes
1answer
128 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 ...
1
vote
1answer
30 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 ...