Questions tagged [demandware]

Salesforce B2C Commerce (previously known as Demandware) is an SaaS e-commerce platform that utilizes a JavaScript-style scripting language called Demandware Scripting, a templating language called ISML.

In June of 2016, Salesforce acquired Demandware, and renamed the platform to "Salesforce Commerce Cloud". It is also called Salesforce B2C Commerce Cloud.

Here is a link to documentation for the API and usage of this platform.

There are 3 architectures of this framework:

  1. Pipelines (Outdated)

  2. SGJC (Site Genesis JS Controllers)

  3. SFRA (Storefront Reference Architecture)

SFRA is the latest among the above.

117 questions
1
vote
1 answer

How to put products from different content slots* in one carousel

I faced with interesting situation. When we need to put some products into carousel from content slot - we just open a selected template in this content slot (https://prnt.sc/rgcp9f) and get products from slotcontent
1
vote
1 answer

Is it possible to make authorized calls to SFCC (demandware) OCAPI /shop using external customer authentication (e..g Cognito access token)?

Today, we use SFCC for e-commerce and it has also acted as our primary identity provider. We're in the process of migrating users and transitioning to use an external identity provider, Amazon Cognito. After the migration, our hope was that we…
1
vote
3 answers

How to import a module from the static using dynamic import of es6?

I'm trying to add dynamic import into my code to have a better performance on the client-side. So I have a webpack config where is bundling js files. On SFCC the bundled files are in the static folder where the path to that files is something like…
1
vote
0 answers

SOAP service exception after second call

I created a SOAP service that fetches some data from a remote server. After second call I always get an exception: stackTrace: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it. Any…
1
vote
1 answer

Two colons before the array`s toString() method

What does the two colons before the toString() method invocation mean? For instance, I found the following code: orderXml.ns::['status'].toString(); Is it the same as ['status'].toString().call(orderXml.ns);? I am using the Demandware Script…
1
vote
2 answers

While importing product XML in demandware how to append images in same product?

I have two product XML look like: 1:- product-1.xml . . . . . . 2:- product-1-1.xml . …
1
vote
2 answers

Update Stock_level in OCAPI

How I can update the inventory (stock_level) using (business manager API). I use the business manager API to retrieve products. I am able to retrieve the products but I am not sure how I can set its stock (stock_level). I have a special requirement…
1
vote
2 answers

Can I pass parameters to a content slot from the calling ISML?

I'd like to be able to pass some supplementary information to a Content Slot, either through a request scope variable or some other means. I've tried this in my calling ISML:
DeathB4Decaf
  • 390
  • 1
  • 10
1
vote
1 answer

Babel can't parse "for each...in" statement

I'm attempting to transpile Salesforce Commerce Cloud's .ds files to JavaScript so we can apply standard testing tools (Jest, Mocha, etc.). The SFCC docs indicate that .ds files are "Rhino JavaScript", with a non-standard extension for Flow-like…
DeathB4Decaf
  • 390
  • 1
  • 10
1
vote
1 answer

How to add custom clientside javascript to demandware SiteGenesis homepage?

I am learning by working with SiteGenesis. I so far understands the basics of controllers and templates in demandware. I would like to understand how I can add client side javascript to a page in demandware. For example, the homepage of SiteGenesis…
awm
  • 1,130
  • 3
  • 17
  • 37
1
vote
1 answer

Integrating Paypal checkout with Demandware and Oracle JDE

We have an e-commerce site powered by Demandware, and we are looking to integrate Paypal as a payment option. We use Oracle JDE to manage our orders. We were told it will be about 96 hours to integrate Paypal to DemandWare and 200 hours to do the…
1
vote
1 answer

Demandware external CSS file

I have very little demandaware knowledge as my boss who was supposed to train me this year ended up quitting so now I am in the dark. I am attending workshops later this year but until then Google and stackover is my teacher. I am editing a content…
sizemattic
  • 139
  • 1
  • 7
  • 17
1
vote
3 answers

Relative path for cartridges in demandware

I am working on Demandware business manager where i need to change the site settings. Going to Manage Sites> Selecting a site and going to settings, there is a field called Cartridges where i put up a list of cartridges to be deployed for this…
jazz199
  • 911
  • 1
  • 8
  • 12
1
vote
2 answers

Add a template from a non-storefront cartridge to Demandware Content Slot Configuration?

I'm using the Demandware Business Manager to create a new content slot configuration for a pre-existing content slot following the Demandware DiD Instructor Guide (pg. 152). My issue is that I'm being told to add a content slot configuration to…
anothercoder
  • 1,449
  • 12
  • 16
1
vote
2 answers