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.
134
questions
0
votes
0
answers
26
views
Hide Price Unavailable for Variant Product in B2B Site
How to hide Price Unavailable for Variant Product that has multiple child variations in B2B Site.
I don't see any option to conditionally render the Price in builder.
0
votes
1
answer
46
views
Alternative method for Creation Order Summary
My requirement was to create test class for Creating Order Summary. Test data was created using ConnectApi.OrderSummaryCreation.createOrderSummary. But if I use ConnectApi, I was forced to use (...
-1
votes
0
answers
21
views
ConnectApi.OrderSummaryCreation [duplicate]
My requirement was to create test class for Creating Order Summary. Test data was created using ConnectApi.OrderSummaryCreation.createOrderSummary. But if I use ConnectApi, I was forced to use (...
-1
votes
1
answer
23
views
Adding a new field to the product index
I'm looking to add a new field to the list of indexed fields on the product index so I can use it as a filter. I haven't been able to find this option anywhere. Any help would be appreciated!
0
votes
0
answers
25
views
Installing/Configuring SFRA on Mac
So i am having trouble installing SFRA on Mac
i am currently referring this documentation where it says
Cloned all the repository from git that includes (storefront-reference-architecture, ...
1
vote
1
answer
38
views
B2B Commerce Cloud related Product
I am trying to add related product for a parent product. I have set up a parent and child product in commerce cloud with product relationship object. But when i select the parent product form ...
1
vote
1
answer
78
views
How to remove .html extension from URL in SFCC B2C
I'm trying to accomplish something here with Page Designer but haven't got there yet.
I need to remove the page .html extension from Page Designer's generated url.
Here is an example.
I've got the ...
0
votes
1
answer
36
views
Salesforce b2b commerce CMS
Is there any way we can get the URL of an image uploaded in the CMS workspace so that we can make use of it in the experience site?
1
vote
0
answers
61
views
salesforce commerce - checkout flow - payment - "purchase now" button won't execute apexAdapter
My problem occurs during a screen flow (Checkout flow).
The "Submit Payment" button (which is part of a the payment component) doesn't execute anything while it should execute (for my ...
0
votes
1
answer
26
views
PWA Toolkit for Commerce Cloud
We have a usecase for a dealer quote submission app on mobile devices. Mobile publisher is not being preferred by client.
Is it possible to use PWA toolkit for B2C Commerce Cloud published by ...
0
votes
1
answer
33
views
How to create system object definition of enum of strings using OCAPI
I want to create a system object definition using the OCAPI. The value type need to be enum_of_string, and I'm trying to use this payload:
curl --location --request PUT '<host>/s/-/dw/data/v20_4/...
0
votes
1
answer
58
views
What is the limit (length) of an order's notes?
When I am adding a note to an order.
order.addNote('Title of the note', JSON.stringify(result, null, 2));
I am getting this error: Text length 4103 > 4000
I didn't find any explanation for this in ...
0
votes
0
answers
45
views
Support of Salesforce Mobile App + SSO for Commerce Portal Licenses
We are planning to use Salesforce Commerce Portal licenses for one of the project.
We have couple of questions around Commerce Portal License. It would be great, if someone can share their views/...
0
votes
0
answers
28
views
Bonus product promotion throwing "quantity not available" error in the cart
We want to set a Bonus Product promotion in Commerce Cloud. The promotion is set up where an order with Amount of Qualifying Products, the discount is Buy 0.01 or More and Get Bonus Product(s) XXXXX. ...
0
votes
1
answer
63
views
SFCC Salesforce Payments: is it possible to have GooglePay button on FireFox browser?
Do you know if it's possible to have GooglePay express checkout on FireFox browser (desktop or mobile), with configured GooglePay in Salesforce Payments?
Look like it's not supported, but some ...
-1
votes
1
answer
93
views
How to go back to previous page after login?
How can i modify the logic to redirect the customer to last visited valid page. For example when customer is in PDP and logs in, they should be redirect back to PDP and not the account page
0
votes
0
answers
107
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 ...
0
votes
0
answers
78
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
119
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 ...
1
vote
1
answer
19
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
167
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
61
views
Email recommendations Marketing cloud - Commerce Cloud [closed]
Do I need to have Commerce Cloud in order to use Einstein Email Recommendations?
Thanks
0
votes
0
answers
24
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 ...
0
votes
1
answer
162
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
25
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" ...
0
votes
1
answer
218
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 ...
0
votes
1
answer
215
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
646
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
0
votes
1
answer
372
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 ...
0
votes
0
answers
155
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 ...
0
votes
1
answer
106
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
49
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
32
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
164
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
1
answer
90
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
84
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 ...
3
votes
0
answers
593
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 ...
2
votes
1
answer
229
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 $...
1
vote
1
answer
124
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
127
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
359
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 ...
1
vote
0
answers
130
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
36
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/...
0
votes
1
answer
21
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
114
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/...
0
votes
0
answers
73
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 (...
1
vote
1
answer
73
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&...
7
votes
1
answer
401
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 ...
1
vote
1
answer
57
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
158
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 ...