ScutiStar IFRAME

the best way to rate a product using GTIN code.

you can use also SKU and MPN code, but as they could be different from store to store, multi collect rating is not available.

and you only get what your users rate

ScutiStar allows e-commerce stores to retrieve product ratings based on the GTIN code (Global Trade Item Number), from all shops

Integrate the iframe into your merchant site in a few clicks and find ratings in your users langage.

Each user can only rate a product once. This note is stored on the ScutiChain irretrievably.

With ScutiStar, use the structured data of your products in accordance with the rules of search engines, for a powerful natural SEO.

Integrate "iframe" with your parameters to fit your website design, color and langage

nota : An iframe has default "heigth:150px, width:300px with border", so you need to adapt your iframe regarding the widget size you want to display

Enpoint:

https://scutistar.com

Service:

search?

Method:

GET

Parameters:

item=<GTIN_code>

label=<true>display overall rating and rating count

font-size=<12>default:10, display label in that size

size=<xl>default:xxs, display whole size of widget in different format (xl , lg, md , sm, xs, xxs, xxxs)

color=<f5f5f5>default:#000000, display label font in that color

lang=<fr>default:en, display label and message in the choosen langage (en,fr)

background=<f5f5f5>default:#fff, display background widget in that color

star=<f02896>default:yellow, display star color in that color

Reply:

web widget

Elephantine

<iframe width="100%" height="150px" style="border:none;" src="https://scutistar.com/search?item=3760377760354&label=true&font-size=14&size=xl&background=f5f5f5&lang=fr&star=f02896"</iframe>

<item="3760377760330" size="xl" label="true">

Ginormous

<iframe width="100%" height="100px" style="border:none;" src="https://scutistar.com/search?item=3760377760408&label=true&font-size=12&size=lg&background=f5f5f5&lang=fr&star=f02896"</iframe>

<item="3760377760354" size="lg">

Well built

<iframe width="100%" height="50px" style="border:none;" src="https://scutistar.com/search?item=3760377760415&size=md&background=f5f5f5"</iframe>

<item="3760377760415" size="md">

Pocket

<iframe width="100%" height="80px" style="border:none;" src="https://scutistar.com/search?item=3760377760446&label=true&font-size=10&size=sm&background=f5f5f5&lang=en"</iframe>

<item="3760377760446" size="sm">

Teeny

<iframe width="100%" height="60px" style="border:none;" src="https://scutistar.com/search?item=3760377760446&label=true&font-size=10&size=xs&background=f5f5f5&color=130577&lang=en&star=ec0be9"</iframe>

<item="3760377760378" size="xs">

Micro

<iframe width="100%" height="50px" style="border:none;" src="https://scutistar.com/search?item=3760377760156&label=true&font-size=10&size=xxs&background=f5f5f5&lang=fr"</iframe>

<item="3760377760156" size="xxs" label="true">

Nano

<iframe width="100%" height="50px" style="border:none;" src="https://scutistar.com/search?item=3760377760309&size=xxxs&background=f5f5f5&lang=en"</iframe>

<item="3760377760309" size="xxxs">

ScutiStar API

Get https://schema.org/AggregateRating compliant datas to push your SEO to next level

make a http call with GTIN as parameter

Enpoint:

https://scutistar.com/ratekit/api/

Service:

rating?

Method:

GET

Parameters:

item=<GTIN_code>

<https://scutistar.com/ratekit/api/rating?item=3760377760415>

and get reply

Reply:

json array

{"item":"3760377760415","status":"success","overall_rating":"4.5","count":"6","author":"scutistar.com"}

It is that how your encoded json must looks like - PHP example

$schema_json = [
'@context' => 'http://schema.org/',
'@type' => 'Product',
'productID' => $product->id,
'sku' => $product->sku,
'gtin' => $product->gtin,
'mpn' => $product->mpn,
'name' => $product->name,
'image' => $product->image,
'description' => $product->description),
'offers' => [
'@type' => 'Offer',
'priceCurrency' => $currency,
'price' => $product->final_price,
'priceValidUntil' => $product->date_valid_to,
'itemCondition' => 'https://schema.org/NewCondition',
'availability' => ($product->quantity > 0) ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock',
'url' => $product->link,
],
'review' => [
'@type' => 'Review',
'aggregateRating' => [
'@type' => 'AggregateRating',
'ratingValue' => $ratingValue,
'ratingCount' => $ratingCount,
],
'author' => [
'@type' => 'Organization',
'name' => $ratingAuthor,
],
],
];

Curl example to get reviews data product for GTIN code

We focus on bringing you the missing stone to your enriched "review" data

Build you CURL request

$getdata = http_build_query(
array(
'item' => $product->gtin
)
);
$opts = array('http' =>
array(
'method' => 'GET',
'content' => $getdata
)
);
$url = 'https://scutistar.com/ratekit/api/rating.php?'.$getdata;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_PROXYPORT, 3128);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response_a = curl_exec($ch);
curl_close($ch);
$response = json_decode($response_a);
if (isset($response)) {
$status = $response->status;
$ratingValue = $response->overall_rating;
$ratingCount = $response->count;
$ratingAuthor = $response->author;
}

Fill your json schema.org enriched data with the reply

'review' => [
'@type' => 'Review',
'aggregateRating' => [
'@type' => 'AggregateRating',
'ratingValue' => $ratingValue,
'ratingCount' => $ratingCount,
],
'author' => [
'@type' => 'Organization',
'name' => $ratingAuthor,
],
],

scutistar.com, a community rating service base on GTIN product code

if you need another langage, feel free to contact us : scuti at scutistar dot com