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
0
votes
0 answers

How to update an Image custom attribute in Demandware (i.e. Salesforce Commerce Cloud)?

I've created an "Image" (i.e. MediaFile) custom attribute for Products called 'user-manual' that will hold a .pdf file, but when I try to run a Transaction to update this attribute I receive the following error: Wrapped…
0
votes
0 answers

Orders getting created without any payment transactions - Salesforce B2C Commerce Cloud

Seeking guidance, help. My current instance of Salesforce B2C Commerce is leveraging a third party payment processor/gateway (e.g. Paypal, Stripe, Adyen etc...). Experiencing an issue on certain orders only, where orders are being created but no…
0
votes
1 answer

How to get information on whether a content asset is online or not in isml file?

I try to get content asset is online or not. I know that when we change online attribute to no from sandbox we won't see asset but currently asset is inside a modal, so that modal shows up with no content. That's why I try to check whether asset is…
eva
  • 29
  • 6
0
votes
0 answers

How to add multiselect in form

I am newbie in SalesForce Commerce Cloud. So if my question is silly then I am sorry in advance. My Target is to show the multiselect on customer registration form. By searching on internet what I have done Step 1: Add form definition
Abbas
  • 763
  • 1
  • 12
  • 26
0
votes
2 answers

Why sfcc use isml instead of html?

Why can't sfcc use html directly instead of isml. One reason I can see is to display dynamic content. But I wanted to know is there any other specific reason for it
Psn
  • 1
  • 1
0
votes
1 answer

Get Type of Page(PLP or PDP) in SFCC

I want to get the type of the page i.e PLP or PDP page
0
votes
2 answers

Demandware (Salesforce Commerce Cloud) Controller Authentication

I am creating a custom controller for an SFCC Commerce Cloud (Demandware) store. Because I need to have communication with Third-party systems, I created a custom REST API controller to be able to receive some data inside the SFCC. I created a rest…
0
votes
1 answer

How to replace Pipelet for ExportCustomerGroups in SFCC? (For removing Deprecated API usage)

function abc(){ var Site = require('dw/system/Site'); var utils= require('app_nars/cartridge/scripts/util/utils.js'); var mySite : String = (Site.getCurrent().getID() == "a") ? "" : "-" + Site.getCurrent().getID(); var customerGroupName : String ;…
0
votes
1 answer

How to remove a product from a category API wise in Demandware(sfcc)?

I'm using the code below to remove the product from catelog - skincare , var name=pdict.categoryName; var category=CatalogMgr.getCategory('skincare'); if(category && category.products.length){ for each(var product in category.products){ …
0
votes
0 answers

Custom event is triggered in Jquery but can't find any event handler

I am having trouble in understanding jQuery custom events and namespaces, In the below code I can see that the the custom event login:submit is being triggered but nowhere I can see a handler function for handling this event, can anyone help me…
Faizen
  • 21
  • 1
0
votes
1 answer

What base URL should be used with SFCC endpoints for sandbox instances?

When attempting to make calls to the Shop and Data SFCC APIs with a sandbox store, is it the sandbox URL itself that should take the place of "https://hostname:port" in the endpoint URL? It's not super clear from the documentation. My SFCC sandbox…
0
votes
1 answer

Not able to save the user selected picklist value in SFCC Demandware

I created a new attribute(favouriteStore - Enum of String datatype) in standard 'profile' object and added it to the account creation page in storefront. Now, I couldn't get the user selected picklist value from ISML to js. I tried the below code,…
0
votes
1 answer

How do I update the value of a custom attribute (enum-of-strings) in SFCC via code?

Requirement: I want to update the value of a custom attribute (name: badges) (type: enum-of-strings) for a Product via code. I want to set the value "bestSeller" as selected. How should I do that update because the code below is not…
BalMukund
  • 1
  • 1
0
votes
0 answers

what is the rate limit by SFCC/Demandware for OCAPIs?

Anyone here has any idea about what is the rate limit setup by SFCC/Demandware for OCAPIs. I am using OCAPIs(v19.10) with Oauth client having grant_types as Business Manager. (urn:demandware:params:oauth:grant-type:client-id:dwsid:dwsecuretoken) .…
0
votes
1 answer

adyen encrypted credit card data

I'm trying to code a script on a sneakers website that supports adyen checkout. Basically, it encrypts my credit card data in this way and doesn't make me pay. payload_cc = { ... "dwfrm_billing_paymentMethod":…
botteruser
  • 13
  • 5