Closed alexvuong closed 1 month ago
For this particular product, I'm not seeing the strikethrough price, even though the API response contains the list price in there.
In my previous screenshot, now we're showing the unit price, even when the quantity is 1. Originally we show the unit price only when the quantity is more than 1.
What is the supposed to be the correct behaviour?
Checkout is currently broken. Entering the Checkout page from Cart shows me this error:
For this particular product, I'm not seeing the strikethrough price, even though the API response contains the list price in there.
@vmarta For the price here, we are using basket pricing instead of getProduct pricing since basket pricing may include different promotion/discount on basket level. For this particular product, it does not seem to return the list price of the products at all
IMO, we should either use basket pricing OR product pricing to display price (via getPriceData
util), we should not attempt mix these data together since it is a complicated to understand that calculation for basket pricing and we may do it incorrectly. I don't think it is a big deal to miss the strikethrough price here since it is mostly informative, the price that shopper has to pay is correct.
In my previous screenshot, now we're showing the unit price, even when the quantity is 1. Originally we show the unit price only when the quantity is more than 1.
What is the supposed to be the correct behaviour?
Good catch, I've fixed it to match the original behavior.
Checkout is currently broken. Entering the Checkout page from Cart shows me this error:
This is fixed. Thanks for catching that
In the above picture am I supposed to see strike-through pricing as I did on the PDP and add-to-cart modal?
![]()
In the above picture am I supposed to see strike-through pricing as I did on the PDP and add-to-cart modal?
Please see this comment https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1796#issuecomment-2135891084
Description
Pricing display on cart checkout wishlist pages due to product tile revampe
Types of Changes
Changes
Use DisplayPrice component in item-variant component
Allow DisplayPrice to take quantity into account
How to Test-Drive This PR
Checkout code
Run retail app
Go to PDP, add a product
Confirm that pricing in AddToCart Modal is correct
Confirm that cart page is showing pricing correctly with strikethrough price
Add an item to wishlist
Confirm that pricing is displaying according to the quantity in wishlist page
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization