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.
116
questions
0
votes
0
answers
15
views
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
0
votes
0
answers
37
views
OCAPI Batch request to get all Orders after a Certain Date
I'm New to SFCC OCAPI. My purpose is to Export all Orders from "development.demandware.net" after certain date and this can happen Quite frequently like once in every 2 days. I'm currently ...
0
votes
0
answers
18
views
Missing registration for cache with ID: 'braintreePreferences'
[Wrapped java.lang.IllegalArgumentException: Missing registration for cache with ID: 'braintreePreferences'. (int_braintree/cartridge/config/braintreePreferences.js#4)
in controller Product]
enter ...
0
votes
0
answers
26
views
Social Share Tags on Product Pages in Salesforce Commerce Cloud (SFCC)
How can I implement Social Share Tags on Product pages in SFCC?
Is there any out of the box feature in SFCC to implement Social Share Tags on Product Pages of the website? If not then which would be ...
0
votes
1
answer
167
views
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
185
views
Error configuring pipeline debugger in Eclipse
enter image description hereI have been trying really hard to configure a pipeline debugger in eclipse. After using my digital server account in server configuration when i select my site and click '...
0
votes
0
answers
50
views
Changing the breakpoint for the mobile menu in Salesforce Commerce Cloud
I have breakpoints defined (as I've been instructed) in the _variables.scss file. My issue is that I need the page to switch to the mobile menu on the 'md' breakpoint rather than the 'sm' breakpoint. ...
0
votes
2
answers
258
views
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 ...
0
votes
1
answer
97
views
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") ? "" :...
0
votes
1
answer
81
views
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....
1
vote
1
answer
84
views
Not able to go to the function definition with SFRA code in vs code
I am not able to go to the function definition while working with SFRA in vs code by any means (i.e Ctrl+Click, F12, Right Click --> Go to Definition ), In spite of having a definition it is ...
0
votes
0
answers
61
views
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 ...
0
votes
1
answer
455
views
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'...
0
votes
1
answer
183
views
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 ...
2
votes
1
answer
270
views
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 ...
1
vote
1
answer
231
views
/products/{id}/availability API endpoint only showing stock till 99?
I would like to get the complete stock value from the /products/{id}/availability API endpoint. But it only returns me stock till 99. Is there a way to get the complete stock from that endpoint?
1
vote
1
answer
158
views
How to create a site using SFRA but name and ID would be my custom name and ID
Whenever I am creating a site following the steps in SFCC infocentre I am getting two sites with name as RefArch and RefArchGlobal but I want my site with my id and my name, I was able to do that by ...
1
vote
1
answer
282
views
OCAPI: How to refresh token after expiration?
Trying to use Salesforce OCAPI from an app.
On the JWT Auth documentation: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2Fcurrent%...
1
vote
2
answers
95
views
SFCC change password policies for customer
I'm on SFCC project , I'm wondering where to change the password policies for customers.
Regards
-1
votes
1
answer
163
views
Error during debugging of Salesforce pipeline
When I try to launch the debugger for debugging pipeline, I get this, error in eclipse.
0
votes
1
answer
510
views
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 ...
1
vote
2
answers
210
views
Error while trying to debug demandware pipeline code using eclipse
After setting up the configuration for pipeline and clicking on debug in eclipse, I get this error.
Errors occurred during the build.
Errors running builder 'Digital Server Upload' on project '...
1
vote
1
answer
548
views
How do I get notified of platform events in SFCC?
What is the typical way of handling events such as new customer registered, cart updated, order posted from a cartridge in SFCC B2C?
Here I can see that some resources 'support server-side ...
1
vote
3
answers
569
views
Get content asset by language id
I'm using Saleforce.com system to develop website, in default site I call <iscontentasset aid="logo"/> and It's work. In admin page, I Select Language is English and in my code I want to call &...
1
vote
1
answer
221
views
Can Salesforce Commerce Cloud used as IDP to External Application
My requirement is to setup SSO between Salesforce Commerce Cloud B2C and BlackBoard/BrightSPace. Which means Salesforce Commerce Cloud will be IDP.
So when I try to login to BlackBoard/BrightSPace ...
1
vote
1
answer
140
views
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 ...
2
votes
1
answer
123
views
Is it possible to create an integration cartridge for BM in the Saleforce for "Marchant Tools" using controllers, not pipelines?
I must create new cartridge for integration in BM but I don't want use pipelines. Can I use the controllers for this? If yes, please provide information on how to do this.
.
1
vote
1
answer
946
views
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....
0
votes
0
answers
397
views
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:...
0
votes
1
answer
1k
views
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 = {
...
"...
1
vote
3
answers
740
views
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 ...
4
votes
2
answers
2k
views
SFCC - Help exporting all Products from Salesforce Commerce Cloud (Demandware) to XML or CSV
We are attempting to migrate a store from SFCC to Shopify, but we are having trouble exporting the products from Salesforce Commerce Cloud (previously Demandware).
I've reviewed quite a bit of ...
-1
votes
1
answer
312
views
Building app for salesforce commerce cloud marketplace
I am trying to build an app for the salesforce commerce cloud (Demandware) marketplace. Not able to find a starting point, developer documentation or guidelines. I need some help with kickstarting ...
0
votes
3
answers
742
views
Add custom css in Content Slot Salesforce B2C Commerce Cloud
I have a content slot in which I need to add custom css file from Business Manager. I want to add the custom file in the head section. Is there any way by which I can do it?
I tried adding a custom ...
2
votes
2
answers
118
views
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 ...
1
vote
0
answers
96
views
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 ...
1
vote
1
answer
117
views
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(...
2
votes
2
answers
237
views
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 ...
0
votes
1
answer
274
views
Commerce Cloud - How to override the code for the Apply button?
I'm fairly new to Commerce Cloud; I've added a custom textfield.
I want to override the form submission that takes place on the click of the Apply Button so that I can read the value from this new ...
1
vote
2
answers
1k
views
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 ...
1
vote
2
answers
368
views
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 ...
1
vote
2
answers
373
views
While importing product XML in demandware how to append images in same product?
I have two product XML look like:
1:- product-1.xml
.
.
.
.
<images merge-mode="add">
<image-group view-type="large">
<image path="product-123.jpg" />
...
1
vote
2
answers
785
views
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 ...
1
vote
2
answers
2k
views
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:
<isset name="message"...
0
votes
4
answers
882
views
How to add the payment transaction status in order placed by using Demandware OCAPI?
I'm developing API for the mobile app of e-commerce website which is on Demandware. I am using the OCAPI 18.8 to place an order and send the payment details to third-party payment processor which is ...
2
votes
2
answers
752
views
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 ...
2
votes
1
answer
896
views
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 ...
-4
votes
2
answers
432
views
Getting stock with demandware/cloud commerce OCAPI [closed]
How would I get the stock of an item via the demandware/cloud commerce OCAPI?
0
votes
1
answer
289
views
OCAPI: my question is that ,Is it possible to get save for later or wishlist product using OCAPI for registered user
OCAPI: Is it possible to get save for later or wishlist product using OCAPI for registered user.
0
votes
1
answer
347
views
Content Slot will not show multiple content assets in Demandware
I have read that you can add multiple content assets in a content slot. I created by content slot and the content assets, and I added each of them on their own line in the content slot. However, only ...