Questions tagged [b2b-commerce]
The b2b-commerce tag has no usage guidance.
75
questions
0
votes
0
answers
27
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
49
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 (...
0
votes
1
answer
30
views
Field expressions values are not shown for guest users in SEO Title of B2B Commerce store page
I'm using field expressions in the SEO Title on the Product Detail page of B2B Commerce store. It works as expected when the user is logged in, but for guest users field expressions values are not ...
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 ...
0
votes
0
answers
68
views
How to make patch request to /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId from my custom LWC checkout component on the new LWR TEMPLATE
Most of the user interaction on the checkout page in the new LWR template for B2B Commerce are making get or patch callouts to /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId to get data ...
0
votes
0
answers
18
views
Error in viewing Content Management tab in E-commerce store
I am new in salesforce and I have created E-commerce store and tried to view Content Management but it is giving me error stating This view isn't supported.
Also with the user with which I am creating ...
0
votes
1
answer
37
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?
0
votes
0
answers
30
views
How can I configure the fields and the filter conditions for display in quick order component for B2B Commerce in digital experience site
As a storefront user, I want to enter in the quick order the SKU number for a frame even without a 0, as I’m not used to enter the SKU numbers, that starts with a 0 so that I find the right product ...
0
votes
0
answers
43
views
Override Account Switch Event in B2B Lightning
I would like to ask if there is way to override the Account Switch Event in B2B lightning OOTB Feature.
My goal is before switching the account I would like to add some message before proceeding on ...
1
vote
0
answers
63
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 ...
2
votes
2
answers
95
views
sObject type 'Store' is not supported
I am new to Salesforce and currently trying to query the fields from the Store object related to the OrderSummary standard object. Store has a lookup relationship with OrderSummary object.
First, I ...
1
vote
1
answer
374
views
B2B Commerce Lightning - Product Media via REST or Apex
I'm running into something that is causing me headaches and I wanted to validate whether what I found about this topic is correct.
First of all, some background. I'm working for a customer that has a ...
0
votes
0
answers
67
views
How to decode ConnectApi response?
Based on article: https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/intro_encoding.htm
Responses from ConnectApi are by default encoded, they have mentioned in this article ...
0
votes
1
answer
89
views
SOQL Tables related by a common look up field
Basically I am trying to get records from ProductCategoryProduct and from CartItem, both tables have a lookup field to Product2, so I use that table.
SELECT Name, (SELECT Id FROM CartItem),
(SELECT ...
0
votes
0
answers
52
views
CCRZ Commerce change function to display Spinner
I have an checkout page in CloudCraze Commerce that call some backend functions, after the checkout button.
This button call the following CCRZ.models.finishOrder.placeOrder while the placeOrder and ...
0
votes
1
answer
155
views
Apex Bulk API order of processing for CSV records
I am currently working on an existing integration for syncing price-book entries from an external system to Salesforce. The system is using Apex Bulk API.I already know that in Salesforce it is ...
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
106
views
Cart Refresh Options
I am trying to create a way for storefront users to easily restart checkout and refresh their cart in a B2B Lightning Store.
I am currently displaying a button through a screen flow component which ...
0
votes
1
answer
83
views
B2B LEX Order integration with external OMS - unit tests with OrderSummary
We are working on a new B2B implementation for one of our clients. One of the tasks is to send the order data from B2B to the client's OMS. This is not SF OMS.
I am looking into the SF data model for ...
0
votes
1
answer
49
views
How to add double quotes to CC Page Label?
I'm trying to add a page label in CC Page Labels that says
Set up your URL under "My Account."
however it displays as
Set up your URL under "My Account."
I've tried using ...
0
votes
1
answer
233
views
Cannot access product list pages "You can't access this account"
I'm using a user that belongs to a Buyer account and went to the site using the Log In to Experience as User but I always get an error when trying to access product pages...the rest of the pages work ...
0
votes
1
answer
650
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
0
answers
90
views
LWC: Instanciate out of the box child component in a custom component after an action is completed?
I'm wondering if it's possible to have a parent component load a child Salesforce provided LWC. The use case is: I have a B2B Store and I would like to load the Product Details component only after a ...
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
1
answer
806
views
ConnectApi.CommerceCatalog.getProduct on inactive product
I am working on a B2B commerce project and I have issues with deactivated products (IsActive=false)
https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/...
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 ...
0
votes
1
answer
165
views
Getting current user's cart in json on front end?
I'm trying to design a widget for user on https://www.michaels.com/ which is a demandware site. And I do see an API that would in theory allow me to do this described here: https://documentation.b2c....
0
votes
1
answer
262
views
B2B Commerce Lightning Custom vs Standard components [closed]
I seek advice on what would be the best approach to take and if anybody maintains custom components which are almost copies of standard components.
I'm working on the shop where Search Product Results ...
0
votes
0
answers
276
views
Deploy Digital Experience from Scratch Org to a Sandbox
We have created a digital experience in a Scratch Org and retrieved the source metadata. When we are trying to deploy the converted source medatadata to a Sandbox the following error is presented:
...
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
131
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 ...
0
votes
1
answer
329
views
Assign/Remove Buyer Group using apex in B2B Lightning Commerce?
Could you please someone explain the relationship between Buyer Group and account ?
I am trying to assign/remove a Buyer group to an account, but not able to assign using Apex.
Thanks in Advance.
1
vote
1
answer
619
views
Payment Gateway Authentication
I am trying to setup B2B Commerce Payments to use a Cyber Source Payment Gateway that I have already implemented but am having issues with the authentication.
The Cyber Source API that my Payment ...
0
votes
0
answers
74
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
74
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&...
3
votes
1
answer
208
views
Pushing Lightning Component Metadata Between Experiences?
We are using Experience Cloud with B2B Commerce and are intending on going live very soon. Our marketing department will be handling metadata changes in our components (eg. we have a banner LWC which ...
7
votes
1
answer
403
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 ...
0
votes
1
answer
469
views
How to get the redirect url, when we clicked on "Log is as user experience" in contact
we have external system when they login in their system and click on button(it will redirect to our community page). In our contact object, we have button "Log is as user experience".
when ...
1
vote
0
answers
344
views
ConnectApi.ConnectApiException : commerce.exception.CommerceException: Error fetching Promotions Associated to this Cart
I am having an issue in my sandbox that is already upgraded to the Winter 22 (api 53) which I will have to fix before it is deployed into the production instance (In October).
Basically (B2B Commerce)
...
0
votes
1
answer
431
views
Unable to create Scratch Org with B2B Commerce Lightning
I get the error when creating the scratch org:
Commerce.settings Not available for deploy for this API version
I'm using a Dev Hub based on an org that has B2B Commerce on Lightning Experience and I'...
0
votes
1
answer
368
views
How to migrate B2B store from sandbox to production?
Does anyone have an idea deploying b2b store configuration and components from sandbox to production?
If you provide a document or any procedural steps that could be more useful
Thanks
0
votes
1
answer
61
views
How do you maintain an org development cycle with a B2B LEX store?
The documentation for store migration in B2B LEX does not appear to let you properly use a 3-tier org development cycle; if you follow the directions to the letter you can end up with an Experience ...
0
votes
2
answers
348
views
Restrict Record Access in Sharing Groups
Is it possible to restrict records (like Orders) created by Community Login Users in a Community Site for different Sharing Groups?
I'm still very new to the concept of Sharing Groups. Currently, we ...
2
votes
0
answers
291
views
Internal Salesforce Error occured when inserting CartItem via Test Class
Since Monday (May 10, 2021), we've encountered an issue in our test class that we didn't encountered previously. There was a Salesforce update on May 10 so I suspect this was the cause of our issue.
...
0
votes
1
answer
372
views
Issues with testing a scheduled product index builder class (B2B commerce)
I wrote this schedulable B2B Commerce Product Index Builder class based on documentation from Salesforce and consulting a custom rep.
global class ccScheduledProductIndexBuilder implements ...
1
vote
1
answer
419
views
B2B Commerce Lightning
Currently working on B2B Commerce Lightning Store and we have enabled guest view but now the client requires guest cart session. Currently in the B2B Commerce Lightning when we click on the "add ...
0
votes
1
answer
572
views
Adding Custom Field to Cart Page in B2B Commerce
I am trying extend the Cart Data Provider and I am having a bit of trouble. I need to pass a custom field to the Cart page. I am able to get custom fields to show up when I extend the Product Data ...
0
votes
1
answer
979
views
B2B Commerce: Error creating webcart
In our Webstore, a user can select a buyer account (from a list of accounts from the Account-Contact relationships) to create a webcart. But it looks like it's not allowed if the user's contact is not ...
0
votes
1
answer
777
views
What are the actual effects of enabling Enhanced Commerce Order?
I need to enable B2B Commerce on our UAT sandbox for an upcoming deployment. However, this involves enabling "Enable Enhanced Commerce Order" in "Feature Settings > Sales > Order ...