Skip to main content

Add Product Review

You are reading an outdated document

Get the latest developer guides on Fynd Partners Help

The Add product review page will display all the details of the product for which review is to be added. User can rate this product via star rating widget, write brief description about it and add title to this review slug.

QG11

Figure 1

Arguments

ContextTypeDescription
product_dataObjectAn object containing details of the product
product_metaObjectAn Object containing meta information of product.
rating_summary

context.product_data

context object will contain all the details of the product. you can use this details to render UI as required.

Example:

The below example will render a sample add product review card.

// Add Product Review example

<div class="add-product-review" v-if="context && context.product_data">
<h1>{{context.product_data.name}}</h1>

<a class="product-details-slug" :href="context.product_data.slug">
<rating-star :stars="context.product_data.rating" />
<span>Rating: {{context.product_data.rating_count }}</span>
<img v-bind:src="getImageUrl" :title="context.product_data.name" :alt="context.product_data.name" />
</a>
</div>