Questions tagged [commerce-cloud]

Salesforce Commerce Cloud is a Salesforce Cloud product made up of multiple products, including B2C Commerce, B2B Commerce, and Order Management.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

SFCC cart url to open cart

I have read the B2B Commerce Api documentation where it explains how to create a cart, add products, etc ... But I would like to know if there is a way to open a shopping cart in the browser (if the ...
  • 1
0 votes
0 answers
27 views

SFTP Connection Issue

I am trying to connect an SFTP server with SFCC using the service framework. I am able to connect this SFTP server using Cyberduck at port 22 but the SFCC service framework is hitting port 21 I guess ...
0 votes
1 answer
14 views

How to add an object into another object - ES5

var filters = {'sort': 'asc', 'query': 'id=1'}; var data = {}; data.search = {'type': 'manual'}; Object.assign(data.search, filters); When using ES6 this code works correctly. But when it's in ES5 I ...
0 votes
1 answer
11 views

Terminal error (esLint) related to hasOwnProperty when compiling

Even the code working good… i am getting this error on terminal. if (response.product.hasOwnProperty('availabilityForPickup') { //Do something... } Do not access Object.prototype method '...
1 vote
2 answers
37 views

How to check which controller a request is coming from?

Can anyone give any clues on how I can check if a request is coming from a specific controller? I meant, to meet this requirement: As the order model gets loaded whenever the customer has an ...
-1 votes
1 answer
35 views

Email recommendations Marketing cloud - Commerce Cloud [closed]

Do I need to have Commerce Cloud in order to use Einstein Email Recommendations? Thanks
  • 11
0 votes
0 answers
21 views

Salesforce commerce cloud contact form attachment needs to store and flow to SOM

I have a requirement to have a contact form that has ability to attach a file and submit the details in SFCC. All the data other than attachment i can able to sync to SOM, but i have no idea to ...
  • 1
0 votes
1 answer
50 views

Pulling the file on Webdav to local in salesforce commerce cloud

I want to extract my file ,which is kept in a certain directory on webdav, to local with code. I was able to create a sample link to download it, but I can't pull it to my local by sending an http get ...
1 vote
1 answer
18 views

List of installed certificates from BM and their expiration

I want to add some external system monitoring for certificates, listed on "Private keys and Certificates" in commerce cloud BM. Basically I need "Alias" and "Valid to" ...
  • 11
0 votes
1 answer
82 views

How to convert SFCC custom class to JSON format

Is there any way to convert a custom class eg: dw.customer.CustomerAddress to JSON format and return the value in a controller? If I just return the attribute I'm receiving an empty object. I know I ...
  • 103
0 votes
1 answer
112 views

How to get the list of products of a product promotion class?

I am working on a function that deals with reviewing the product class promotions, and obtaining the list of the products to which it applies. var promotion = PromotionMgr.getPromotion("alimento-...
0 votes
1 answer
286 views

Price is showing Unavailable in B2B commerce in System admin profile

In Salesforce Commerce B2B after adding the price on product ,price is showing Unavailable in System admin profile but it is showing price in other profile user
  • 23
0 votes
1 answer
238 views

How to display Product custom attributes on cart-show controller

I created one custom attribute called Estimated delivery date which I need to display on PDP and Cart-show page. It is accessible on pdp page as product object available. But how I can get that value ...
  • 101
0 votes
0 answers
97 views

How to add LWC or Aura components onto B2C Commerce Cloud storefront site?

We are new to B2C commerce cloud and trying to add LWC and Aura components that we have to the B2C Commerce Cloud storefront site. Is there a way we can add these components onto the storefront site ...
  • 1
0 votes
1 answer
47 views

Search Customer Profiles by null custom attribute value

I have created a new custom attribute in Profile Object. It is a boolean attribute. Now I need to retrieve all customers without that attribute (null) or with that attribute value being false. I have ...
0 votes
0 answers
41 views

What are the limitations of a "Log in as user" in salesforce

We were doing some tests with our experience site while using the "Log in as User" and we noticed that we couldn't navigate to our connected app's page properly, as it returns an ...
0 votes
0 answers
16 views

How to mass import link to Attachments on Commerce Cloud

We have files with lists of products to import, where there are links to .pdf and .mp4 files that we have to import in the area represented in this picture, in the ‘Attachments’ area. We tried to ...
0 votes
0 answers
107 views

How to navigate to a commerce cloud site from an experience cloud log in page

We're trying to redirect our users to the new commerce cloud page after logging in through the experience cloud log in page but it seems that the in order to properly redirect we need to have ...
0 votes
0 answers
132 views

How do you quickly redirect from a salesforce site to an sfcc site upon log in

would like to ask how to implement a quick redirect to an sfcc site upon login from an sfdc site? we are implementing an sfcc customer page site, but we noticed that the session isnt being registered ...
0 votes
1 answer
59 views

How do you connect your Salesforce site to your Salesforce Commerce Cloud site?

We are currently working on a Salesforce site and would like the user to get redirected to the Commerce Cloud version of the landing page upon logging in. We would like to know, if there are some ...
0 votes
1 answer
52 views

Ability to add search keyword to article - SFCC

is there a way to add keyword search so products and articles will appear as a result at the same time? For example, black tea products will appear when a customer search for 'black tea', however we ...
  • 23
0 votes
0 answers
53 views

Is there a way to calculate taxes on Orders That come from a connected system?

The Background: We have an org that's connected to an external system (ERP). Some of our orders (due to business requirements) need to be inputted through our external system, then pushed to ...
3 votes
0 answers
338 views

B2B Experience site - Get Current CartId

I am developing LWC on a community site of b2b commerce. Is there a way to get the current cartId directly from the LWC or I have to get it from soql? note: I cannot get it from {!recordId} because ...
  • 473
2 votes
1 answer
124 views

Sorting rule: display highest discount

is there a way to display highest discount value using sorting rule? For example, I want to show items that have the highest discount only - item A used to be $100 now $20, item B used to be $100 now $...
  • 23
1 vote
1 answer
98 views

Has anyone integrated Salesforce Commerce Cloud (SFCC) with any messaging technologies?

I'm looking for examples of how others might have solved for this. Did you build a custom cartridge? Did you leverage some externally running agent to retrieve data by OCAPI (or Commerce Cloud APIs)? ....
1 vote
1 answer
78 views

OCAPI: using expand parameters returns status code 400

Using the Coupon resource of the Data API, I am trying to get the count of the total codes and redemptions for a specific coupon. Unfortunately, when I use expand parameters redemption_count and ...
0 votes
0 answers
220 views

Is it possible to delete cart and its cart items using CommerceCart api?

I've noticed that invoking CommerceCart.deleteCart method does not cascade the deletion on its Cart Items. Am I doing something wrong, or is it a correct behavior? The description of this method in ...
  • 352
1 vote
0 answers
108 views

Is there a standard or pre-built inventory management for products in B2B commerce?

I have set up a store and integrated a checkout flow. But there doesn't seem to be a standard quantity field on the product or any available inventory object to calculate the product quantity. Am I ...
1 vote
1 answer
32 views

productSearchHit is returned with empty allPromotionIDs

I want to leverage the data from the productSearchHit model: https://documentation.b2c.commercecloud.salesforce.com/DOC4/topic/com.demandware.dochelp/DWAPI/scriptapi/html/api/...
  • 173
0 votes
1 answer
20 views

CommerceCloud - Navigation category visible for Registered users only

I'm trying to set up a category called "Category 1" which will only be visible for logged in users. The only way I can think of this working is with Customer Groups, however, I can't see any ...
0 votes
1 answer
67 views

shipping promotion for a non selected shipping method

SFCC Storefront Reference Architecture SFRA shipping promotions. for a selected shipping method of a lineItemContainer (basket), i can get the active promotions : var PromotionMgr = require('dw/...
  • 1
0 votes
0 answers
48 views

Ecommerce: how to make some products view only

In a Salesforce B2B eCommerce Lightning, how can I make some products visible but not available for purchase depending on user type, account attribute and product attributes ? Example) if a client (...
  • 21
1 vote
1 answer
46 views

Error: You can add up to 5 000 Products to a Category

In Salesforce B2B eCommerce, when I try to add many of my products to a Product Category I recieve this error: "You can add up to 5 000 Products to a Category. Delete some Products and try again&...
  • 21
7 votes
1 answer
294 views

Enable B2B Commerce in Existing Salesforce Org

We have a requirement, where one of the customers is using Sales Cloud with objects like Leads, Opportunity, Product, Pricebook, etc. Now they would like to use B2B commerce. We have a question ...
  • 2,250
1 vote
1 answer
35 views

Salesforce Commerce checkout json carts object

I'm trying to get the cart products json object in the CheckOut page from the web page side. I see there's a dw.order property in the documentation but when inspecting the dw object using the web ...
0 votes
1 answer
103 views

PATCH request using LocalServiceRegistry

I have a scenario where if the customer updates his/her profile in SFCC, then that customer has to be updated in the Salesforce Account object using a PATCH call. I was planning to use to the ...
2 votes
4 answers
369 views

Commerce B2C store creation throws "An unexpected error occurred."

I have a developer account and trying to create a SF store using B2C templates provided by SF, however, I'm encountering an error every time I press create. Error: An unexpected error occurred. Try ...
  • 21
0 votes
1 answer
186 views

Accessing Order History of All Customers Results in [Unauthorized access to order 'orderNo' in controller]

I'm a beginner in SFCC and I'm hoping someone can point me to the right direction. What I want to do is to get the orders of all customers in my controller (my end goal would be to sort the products ...
  • 1
0 votes
1 answer
200 views

What does sgmf stand for in `sgmf-scripts`?

What does sgmf stand for in the name of the sgmf-scripts tool that is used for creating Storefront Reference Architecture overlay cartridges?
0 votes
1 answer
67 views

Why does Commerce Cloud Sandbox show no page types on creation?

When I create a Commerce Cloud Sandbox, go to the Business Manager, and go look at the storefront, I can see a basic, starting UI. However, when I then go to Page Designer, it tells me that there are ...
1 vote
1 answer
393 views

SFCC - Custom Controller and oAuth

I am creating a custom controller for a SFCC Commerce Cloud store. Because I need to have communication with Third-party systems, I created a custom REST API controller to be able to receive some ...
  • 31
1 vote
1 answer
164 views

Commerce Cloud Controller Authentication

I did a controller inside commerce cloud in order to update the order from the external Order Management Service. Then controller inside the Commerce Cloud will receive the order details by a POST ...
  • 31
0 votes
2 answers
92 views

bcrypt in Commerce Cloud

I am new to Salesforce B2C. I need to use the bcrypt dependency in a Controller, but I can't get it installed on the cartridge. I am not sure if this is possible. If it is not possible. Is there a ...
0 votes
1 answer
70 views

Call site genesis pipeline inside site genesis controller version

I am converting a pipeline into a site genesis controller version in sfcc b2c. But unfortunately, that pipeline has multiple pipelines inside it. and there are also multiple pipelines are being used ...
0 votes
2 answers
2k views

HTML5 video tag doesn't work on iPhone/Safari (SFCC)

I'm struggling with this: HTML5 video tag is not working on iPhone (Safari). This is my code: <video class="video" controls="" loop="" muted="" playsinline=&...
0 votes
1 answer
221 views

SFCC pipeline documentation

I have found a pipeline documentation URL but does not open to me. does anyone know how I can read SFCC pipeline's basics? PLEASE suggest documentation for sfcc b2c pipeline version's documentntion ...
1 vote
0 answers
114 views

Commerce Cloud Bundle Price is null and can't add to cart

In commerce cloud, when adding a Variation Master product to the bundle, the price is showing null and I can't add to cart even after selecting the variant. Is there something I'm missing here?
  • 11
0 votes
1 answer
25 views

How to know through storefront website of Salesforce Commerce Cloud where Einstein is configured and providing results or not?

Through Salesforce Commerce Cloud Storefront websites, i would like to know whether particular websites running showing more results where Einstein is configured and providing results or not? Can ...
  • 113
1 vote
0 answers
166 views

How to install Einstein module in Salesforce Commerce Cloud?

Does anyone how to install and upload Einstein module on the Salesforce commerce cloud? Till now, i went through trailblazers some documentation but I could not any relevant information on that topic. ...
  • 113
0 votes
1 answer
121 views

What is the use of the dwTemplateURL="http://localhost:60606/target=" calling from templates?

On each item listing page and other pages well I can see dwMarker, dwPipelineURL, dwTemplateURL and dwTemplateTitle in the comment section. Can anyone let me know what is the usefulness of this ...
  • 111