Skip to main content

I am getting the below error as admin when i tried to click on add to cart

 Something went wrong while adding a product to the cart. Try again later.

 

Does anyone know why it is showing like this  @* Salesforce Commerce for B2B & D2C *@Lightning B2B Commerce@* Experience Cloud *

Hi Team,

7 answers
  1. Jan 31, 2022, 8:47 PM

    The System Administrator is not automatically an authorized buyer. They would need to be a buyer, in a buyer account, in a buyer group, with an entitlement policy and a price book.

0/9000

I want to upload all my cartridges at the same time through command line. How do I do that through command line? I know prophet does it. I have been using dwupload but am a little confused on if i have to point it to every cartridge individually or if there is a short cut to that? I do already know about dw.json and have followed the trail heads and the docs but still don't have an answer.

2 answers
  1. Oct 4, 2024, 12:16 PM

    Generally, I have a command in my package JSON that chains multiple cartridge uploads. 

     

    "uploadCartridge": "dwupload --cartridge cartridges/xxx && dwupload --cartridge xxx && ...
0/9000

While doing the checkout, I am facing this error : 

[Something's not right with the inventory reservation. Check the products and try again.]

 

This org is created after spring 24 release and therefore in my webstore object "OptionsCartCalculateEnabled" was set to true by default. By following the documentationUnable to Process Payment Payment token conflicts with existing payment. || Something's not right with the inventory reservation. Check the products and try again. (Spring 24' org)

 

Therefore, I changed the value of OptionsCartCalculateEnabled to false.

But in my site while placing the order on checkout page I am getting this error.error.png

 

Ps: There is no record in inventoryReservation object, not sure what's the reason behind this error.

 

Additionally, before the above error there was one more error while using credit card for payment, facing the following error. credit card error 1.pngHowever, I've linked the required integration classes and added stripe as a payment gateway provider. Following are the credit card details entered during a checkout.

 

credit card error 2.png

 

PS : I am only able to proceed when purchase order is selected instead of credit card. 

Can anyone tell the solution or reasons behind these 2 errors in salesforce b2b commerce site. 

@* Salesforce Platform * @Salesforce Trailhead @B2B Commerce @Dillip Nayak @Ashish Agarwal

 

#Salesforce Developer@Raghuveer Singh Rawat @sakshi nagpal @Christian Ruthner @Lightning B2B Commerce

@* Salesforce Developers *

6 answers
  1. Aug 20, 2024, 12:29 PM

    @Danish Mahajan

    In my case, I encountered the error in a Developer Edition org. However, when I tried it in another org, it worked without issues. The error can be resolved by deactivating the inventory option. @José Cóiass resolved it this way.

0/9000

Hello All, have a question on order update in B2B commerce lightning. After placing an order with order summary got created, how can a customer change any quantity to any order item? How can order item quantity and replacement of item be done from backend too? Any pointer would be appreciated. Thanks you.

1 answer
  1. Aug 17, 2024, 3:41 AM

    @Tirthankar Dastidar I think for this we need Salesforce OMS and its related objects to help create Change order or Update order

     

    Order Product Summary | | The current state of a product in an order summary. The summary tracks status by quantity. For example, the summary could show an ordered quantity of 3, canceled quantity of 1, and fulfilled quantity of 2. The summary is associated with an original order product and any order product summary changes that apply to it, such as returns or cancellations.

     

    Order Product Summary Change | | Data related to a change to an order product summary, such as a return or cancellation. It’s associated with an order product summary and an order product.

    Example of Updating the quantity would be cancelling few quantities in the Order item.

    https://help.salesforce.com/s/articleView?id=sf.om_cancel_order_items.htm&type= 

     

    Remove an Item from a Fulfillment Order

    https://help.salesforce.com/s/articleView?id=sf.om_remove_an_item_from_a_fulfillment_order.htm&type=5 

0/9000
0/9000
0/9000

@Lightning B2B Commerce @* Salesforce Commerce for B2B & D2C * @Salesforce LWC Development

 

I'm using Custom component to display PDP page details. Now I want to display Product's Price details in that custom component via APEX logic. 

 

Any idea?

1 answer
0/9000

What are the ways to control the product quick search filter? , do we have any OOTB setting for this? please give your inputs, thanks! attached the screenshot.

 

@Lightning B2B Commerce@* Salesforce Commerce for B2B & D2C *

What are the ways to control the product quick search filter?

6 answers
  1. Nov 8, 2023, 3:27 PM

    Hey @Simha Murthy,

    I'd like to ask how come it doesn't work for you? It does for me. Before doing anything custom, I'd be sure that OOTB is not fitting into my use case otherwise you are missing the point of having Salesforce. You can apply any custom solution there by replacing the standard search component with a custom one but you will type lots of code / test for it. Also when Salesforce releases new features, you won't have them due to custom solution.

0/9000
0/9000

I have a customer that wants to limit access for their users so that they can only purchase a subset of products available in their catalog. It is possible to allow SOME users access to all products while restricting access to only specific products for other users? 

0/9000