🌟本賣場販售商品全素可食🌟
【商品品名:展榮商號-三色糙米】
成分:糙米(花蓮)、黑(糙)米、紅(糙)米
產地:台灣
規格重量:500g±10%
【商品品名:展榮商號-花蓮糙米】
成分:糙米(花蓮)
產地:台灣
規格重量:500g±10%
【商品品名:展榮商號-黑(糙)米】
成分:黑(糙)米
產地:台灣
規格重量:500g±10%
【商品品名:展榮商號-綜合五穀米】🌱
成分:花東糙米、台灣黑米、糯小米、燕麥、蕎麥、麥仁
產地:台灣、澳洲、中國🇮🇩
規格重量:500g±10%⚖️
商品特色:
* 紅米內富含豐富的植物蛋白質、維生素A、B群
* 黑米中富含豐富的礦物質、花青素
* 糙米內含有豐富的膳食纖維,是普通白米的6倍多
parseInt(review.rate)).reverse().slice()[0]
if (highestReview) {
var reviewData = {
"@context":"https://schema.org/",
"@type":"AggregateRating",
"itemReviewed":{
"@type":"Product",
"name" : "生-五穀米 | 糙米系列",
"review": [
{
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": highestReview.rate
},
"author": {
"@type": "Person",
"name": highestReview.customer_name
},
"reviewBody": highestReview.comments
}
],
},
"ratingValue": average_rate,
"ratingCount": total_count,
"bestRating": "5",
"worstRating":"1",
};
var script = document.createElement('script');
script.type = "application/ld+json";
script.appendChild(document.createTextNode(JSON.stringify(reviewData)));
document.getElementsByTagName('head')[0].appendChild(script);
}
}
if(data.comments.length > 0){
var html = "";
data.comments.forEach(function(value){
var variant_name = value['variant_name'] ? '
'+value['variant_name']+'
' : '';
var is_verified = value['is_verified'] ? 'sr-app-is_verified' : '';
html += '';
})
}else{
var html = '
'+tt.no_comments+'
';
}
var comment_table = document.getElementById('es-sr-app-table');
comment_table.insertAdjacentHTML('beforeend', html);
updateAvgStarRating();
});
}
if (
document.readyState === "complete" ||
(document.readyState !== "loading" && !document.documentElement.doScroll)
) {
callback();
} else {
document.addEventListener("DOMContentLoaded", callback);
}
var rating_button = document.getElementById('es-sr-app-post-comment-btn'); // Check existence of rating button before add listener
if (rating_button) {
rating_button.addEventListener('click', function() {
document.getElementById('sr-comment-error').innerHTML = "";
if((document.getElementById('sr-comments').value).trim().length > 255){
document.getElementById('sr-comment-error').innerHTML = tt.msg_too_many_char;
return false;
}
if(document.getElementById('es-sr-input-rating').value == 0){
document.getElementById('sr-comment-error').innerHTML = tt.msg_rate_more;
return false;
}
if("" == 0){
document.getElementById('sr-comment-error').innerHTML = tt.msg_login;
return false;
}
var data = {
customer_id: "",
product_id: "10679159",
customer_name: "",
rate : document.getElementById('es-sr-input-rating').value,
comments : document.getElementById('sr-comments').value
};
document.getElementById('es-sr-app-post-comment-btn').className += " btn--loading";
fetch("/apps/rating/"+ '10679159' +"/rates", {
method: 'post',
headers: {
"Content-Type": "application/json; charset=utf-8",
},
body: JSON.stringify({
customer_id: "",
product_id: "10679159",
customer_name: "",
rate : document.getElementById('es-sr-input-rating').value,
comments : document.getElementById('sr-comments').value
})
})
.then(function(response) {
return response.json()
})
.then(function(data) {
if(data.success){
document.getElementById('sr-comment-error').innerHTML = "";
location.reload()
}
});
},
false);
}