Product reviews allow customers to write their feedback and provide ratings about their orders in a separate block.
<aside> ℹ️ Usually, styling this element takes from-to: 5-7h
</aside>
Product gallery can be found on the following elements:
The product review should be displayed accounting for the following:
The following states must be displayed:
New review form
Review list
Reviews can be managed by the 3rd party extension however for output should be used default methods, therefore, theming for reviews can be implemented by the FE team.
Theme the ProductReviews
component.
ProductReviewList
is responsible for rendering the reviews.
Each review is displayed in ProductReviewItem
.
Theme the ProductReviewForm
component. It can be found in the ProductPage
route in renderReviewPopup
method.
Often a "jump link” for a fast scroll down to the reviews section is asked to be added. Functionality can be handle by Link
component, by passing to
prop with value of needed block id
(example - to='#ProductReviews'
. However, there is bug in the Link.conteiner.js
which removes #
from the beginning of to
value, therefore container should be extended and this fix applied (SPWA 5.1.1.)
Link