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.
141
questions
0
votes
0
answers
29
views
update the quantity and price of of OrderItemSummary
It possible to update the quantity and price of of OrderItemSummary or add new product to order and its order product summary once order is created using connectAPI in commerce cloud. As we have split ...
0
votes
1
answer
34
views
Getting error [{"errorCode":"NOT_FOUND","message":"The requested resource does not exist"}]
I want to update the order summery item price and quantify, to archive it i am trying to follow below solutions none of them worked for me. Do anyone here have any idea on what is the issue
I am ...
0
votes
0
answers
37
views
Debug user movement on store to reproduce error on local environment?
I am in a situation where I am encountering an error on my sandbox environment, I know how to trigger it, but I don't know what is throwing that error.
Is possible to somehow log everything from when ...
-1
votes
0
answers
30
views
Duplicates on multiple pages of CommerceSearch.searchProducts result
I've just noticed that I get duplicate products when fetching subsequent pages using CommerceSearch.searchProducts. Have you ever faced such a problem? It's worth mentioning that I'm not exceeding the ...
0
votes
0
answers
54
views
Test Class - Testing Updates
I had to add a couple of updates to my class and now I'm only at 69% code coverage. How do you write tests when you are simply doing an update? I feel like I'm overthinking it, but then maybe not ...
0
votes
1
answer
141
views
Salesforce product variant are not shown - only simple products are shown?
I've have set up a store in Salesforce, where I for now have been listed "simple" products.
These are have been shown shown in the store without any problems, the now occur after having ...
0
votes
0
answers
45
views
When creating new site, b2b commerce lightning template gives error
I am trying to create a new site from all sites.
If I choose B2B Commerce (LWR) template, it gives me an error when site setup.
An unexpected error occurred. Try again or contact your Salesforce ...
0
votes
0
answers
43
views
Salesforce Commerce Cloud Payment Setup Issue
We are trying to setup the Salesforce Out of the Box Payment procedure for a B2B Commerce store created in LWR Template by following the below Salesforce Help Document.
https://help.salesforce.com/s/...
0
votes
0
answers
35
views
how to assign role to the pporal user in commerce b2b cloud
public without sharing class CreateAccountContactUser{
@InvocableMethod(label='Create_Con_User' description='Contact User')
public static void processRecords(List<FlowInput> inputs) {
...
0
votes
1
answer
47
views
Converting a custom xml attribute to a useable AMPscript valuue
I am using several AMPscript blocks to import xml order data from Commerce Cloud into a Marketing Cloud Data Extension, ex:
set @P18_orderno = concat("//order/product-lineitems/product-lineitem[...
0
votes
1
answer
80
views
Commerce Cloud API retrieve list of site names
Folks,
Is there a commerce cloud end point to retrieve a list of sites? I can't find anything in their documentation. There is a list of channels when you retrieve client ids but is that even best ...
0
votes
0
answers
109
views
Having issue in decrypt the data using Cipher Class
I have a requirement to encrypt data in Salesforce Apex, and the other team will decrypt the data using a common private key.
However, I made some modifications to the code.
below is the code to ...
0
votes
1
answer
57
views
EU discount product regulation - Omnibus
I have to update pricing information display: For any promotional activation, when a promotional pricing is available, pricing from the last 30 days should be displayed. Is there an existing cartridge ...
-1
votes
1
answer
416
views
B2B lightning checkout flow(standard)
does anyone had worked on B2B lightning checkout flow(standard) in salesforce.
I got this error when click on checkout button
I have selected Shipping address from Contact point Address also
Something ...
0
votes
0
answers
163
views
Cannot find the declaration of element 'custom-objects'
I have been adhering to the guidelines provided on the SFMC Connector repository, and as per one of the instructions, it is recommended to "import the metadata, custom objects, and job ...
0
votes
0
answers
108
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
1k
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
1
answer
103
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
1
answer
107
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
273
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 ...
0
votes
0
answers
209
views
Upload data in omnichannel inventory by using headless commerce Upload API
I am trying to upload data into omnichannel inventory in OMS and configured with SFCC as well. Using headless commerce 'Upload API (/commerce/oci/availability-records/uploads)' sometime data uploaded ...
1
vote
1
answer
356
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
145
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
196
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
56
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
68
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
180
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
1
answer
142
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
159
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
1
answer
431
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
28
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
387
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
71
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
1
answer
538
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
30
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
455
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
317
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
1k
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
561
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
1
answer
189
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
231
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
134
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
144
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
1
answer
1k
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
400
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
163
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
202
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
750
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
190
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
66
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/...