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
3
votes
5 answers

What is main difference between Content Asset and Content Slot in demandware / SFCC?

What is main difference between Content Asset and Content Slot in demandware / SFCC ?
3
votes
3 answers

Demandware/SFCC prerequisites

If one were interested in learning to develop on Salesforce Commerce Cloud (formerly Demandware) could they leverage knowledge in other frameworks to expedite their onboarding? If such other frameworks exist, which are they? What are some other ways…
3
votes
1 answer

At-sign before square brackets

I'm currently maintainging some DS/JS code in Demandware and I just found that : var XmlReponse : XML = new XML(result.object.text); status = XmlReponse.@["STATUS"]; What does this unusual "@[...]" syntax do ? It could have something to do with…
Benj
  • 1,184
  • 7
  • 26
  • 57
3
votes
3 answers

How to edit the source code of the website hosting in Demandware?

I want to edit the css and attached some js file in the header.Can i edit it through login to the ftp account using in Dreamweaver.Or i need edit it in Eclipse?
sum man
  • 73
  • 1
  • 1
  • 5
3
votes
0 answers

how to use demandware dynamic form framework

I am new to Demandware and I don't know how to use dynamic forms in Demandware I know basic form framework which has xml meta data file which contain all form fields and binding please help me
Shree29
  • 634
  • 11
  • 29
2
votes
0 answers

realm doesn't exist on the current cluster" B2C Commerce Developer Sandbox

I am getting below error when creating a sandbox on B2C Commerce Developer Sandbox (demandware) { "kind": "Status", "code": 404, "status": "Failure", "error": { "status": "Failure", "message": "zzxp: realm doesn't exist on the current…
JavaOyeOye
  • 25
  • 1
  • 6
2
votes
2 answers

Create session redirect link in content asset

Our company has multiple brands and each brand has its own host name, but they are all part of the same site. We can let customers share baskets and other session information when they switch between brands via a redirect link using…
Pinaki Mukherjee
  • 1,616
  • 3
  • 20
  • 34
2
votes
2 answers

Locale function?

Is there a server side function in SFCC to get Locale? Thank you!!! I am localizing a sfcc site, and need to update the en_gb locale in thousands of hard coded strings (in a xml file obtained from Merchant Tools > Content > Import & Export) to…
ean
  • 41
  • 1
  • 4
2
votes
2 answers

OrderMgr getOrder() method always return null

I am writing a simple job that fetches the order status from external service. Then I want to use this data to update the order. Whenever I call a static method getOrder(id : String) on the OrderMgr I receive null. The order with given ID exists…
2
votes
2 answers

What version of Rhino JavaScript does Salesforce Commerce Cloud use?

As I understand it Salesforce CommerceCloud uses Rhino JavaScript, but sadly I cannot find what version it is, which is important for understanding compatibility. Is there any documentation that describes this, and/or is there a way to output the…
Luke
  • 18,811
  • 16
  • 99
  • 115
2
votes
2 answers

Is there a way to assign the primary category for a product in demandware using the Open Commerce API (OCAPI)?

The primary category of a product is present in the product document (primary_category_id) in the DATA API but cannot be written. After sending a PATCH update of the product with a different primary_category_id, it doesn't change. Is there a way of…
martin
  • 247
  • 3
  • 15
2
votes
2 answers

How to implement a serviceworker in SFCC (Demandware)

I was wondering if anyone here has experience with implementing a service worker in SFCC/Demandware. I generate a service worker with Webpack with sw-precache-webpack-plugin The problem is: a service worker should be available from the root of the…
2
votes
1 answer

Salesforce Commerce Cloud - Add search subrequest in batch OCAPI

I'm tying to write a batch OCAPI. In one of the sub request, I would like to use the product_search and variant_search OCAPI. All settings in the sandbox are correct, the two OCAPI works perfectly if I use them separately. I receive an error only…
lirone
  • 21
  • 3
2
votes
1 answer

How can we get the last accessed pipeline from SFCC (demandware.)

I need to get the last rendered pipeline name. Is there any method to get the same?
Aravind
  • 2,290
  • 1
  • 11
  • 21
2
votes
1 answer

Salesforce Commerce Cloud/Demandware - OCAPI query orders by date range

I am trying to query the Demandware (SFCC) api to extract orders using a date range. The POST to orders_search works but it seems terribly inefficient. First I pull ALL data and then I filter the results. I would like to simply query for the…
smoore4
  • 4,520
  • 3
  • 36
  • 55