@W-17966639 B2C DeliveryService apex code changes#333
Conversation
|
Hi @tarcang @snilakandan13 Thanks! |
|
@sf-anilpurohit Can you please check if you need any additional tests for this scenario? |
|
@gurpreetsainisalesforce |
|
@sf-anilpurohit I have a general concern regarding this work — I always think that we should keep our sample code simple and easy to understand. In the past, I have seen multiple customers misused/misunderstood our sample code. It’s unnecessarily long and complicated. Also, sample code is not for production usage, if our partners/customers want extra business logic implemented, they can do it on top of sample code. I am afraid that, by making the sample code longer and more complicated, it doesn’t serve the purpose of sample code well. |
What does this PR do?
In This PR we have changed Apex sample code for B2CDeliveryService to retain previously selected delivery method when we retrigger shipping calculation from buyer flow.
What issues does this PR fix or reference?
#, @@
@W-17966639
Functionality Before
<insert gif and/or summary>
Earlier we were not retaining previously selected delivery method and it was always getting clear then buyer need to select again if he change the delivery address.
Functionality After
<insert gif and/or summary>
Now we are retaining previously selected delivery method and it wont clear if buyer change the delivery address.
How to Test/Testing Effort
<insert gif and/or summary>
by placing order in checkout flow by selecting one of CDGM and changing the address we can test it.