オーツ ブラウン | 1 Month、1箱2枚
¥2,190.00
${function() {
const price = +data.price;
const compareAtPrice = +data.compare_at_price;
const compareAtPriceHtml = price < compareAtPrice
? ` `
: '';
if (!!price) {
return `
${compareAtPriceHtml}
`;
} else {
return `
`;
}
}()}
度数
Please select
${data.targetOption || ''}
${function() {
const variants = data.originData.product.variants;
const currentOptionName = "\u5ea6\u6570";
const currentPosition = 'option' + 1;
const values = ["0.00\uff08\u5ea6\u306a\u3057\uff09","-1.00","-1.25","-1.50","-1.75","-2.00","-2.25","-2.50","-2.75","-3.00","-3.25","-3.50","-3.75","-4.00","-4.25","-4.50","-4.75","-5.00","-5.25","-5.50","-6.00","-6.50","-7.00","-7.50","-8.00"] || [];
return values.map(value => {
let variant = variants.find(item => {
let temp = false
if (item.option1 && !item.option2) {
temp = item.option1 === value
}
if (item.option1 && item.option2) {
temp = (item.option1 === value && item.option2 === value)
}
return temp
})
let soldOut = false
if (variant) {
soldOut = !(variant?.available && variant?.available_quantity > 0)
}
const disabled = data.originData.name == currentOptionName && data.originData.disabledValues.includes(value) ? 'disabled' : '';
let selected = '';
if (disabled != 'disabled' && data.originData.selectedValues[currentOptionName] == value) {
selected = 'selected';
}
return `
${value}${soldOut ?'Out of Stock' : ''}
`;
}).join('');
}()}
数量
${index + 1}
`;
}).join('')}
10+
`;
}()}
Guaranteed safe checkout:
カスタマレビュー
あなたは底に到達しました
最新
最も気に入った
最高評価
最低評価
×
${function(){
const limit = typeof data === 'number' ? data : 0;
return `
写真/ビデオ (${limit || 0}/5)
` }()}
${(function(){
const closeIcon =
'';
if (item.type === 'image') {
return `
${closeIcon}
`
}
return `
${closeIcon}
`
})()}
The review would not show in product details on storefront since it does not support to.
最近見たアイテム
${function() {
const force_image_size = "natural";
const product_hover_on = true;
const product_show_sale_label = true;
const product_save_type = "percent";
const badge1 = "";
const badge2 = "";
const badge3 = "";
const product_title_mobile_hide = false;
const product_title_style = "full";
const enable_collection_thumb_image = true;
const variantNames = ["color"];
const thumbMaxNum = 3;
const url = data.url;
const productId = data.id;
const price = data.price;
const productAvailable = data.available;
const productVariants = data.variants || [];
const images = data.images || [];
const image = data.image || {};
const imageWidth = image.width;
let imageHeight = image.height;
let image2 = null;
let imageHoverOn = false;
if (force_image_size !== 'natural') {
imageHeight = imageWidth * force_image_size;
}
if (product_hover_on) {
for (let i = 1; i < images.length; i++) {
const img = images[i];
if (img.src && img.src.indexOf('video=') === -1) {
image2 = img;
imageHoverOn = true;
break;
}
}
}
let compareAtPrice = data.compare_at_price;
let offRatio = data.off_ratio;
let discountMaxUrl = url;
for (let i = 0; i < productVariants.length; i++) {
const variant = productVariants[i];
if (variant.price == price && compareAtPrice < variant.compare_at_price) {
compareAtPrice = variant.compare_at_price;
offRatio = variant.off_ratio;
variant.available && (discountMaxUrl = variant.url);
}
}
const soldOutText = "\u58f2\u308a\u5207\u308c";
let soldOn = false;
let saleOn = false;
if (productAvailable) {
if (product_show_sale_label && price < compareAtPrice) {
saleOn = true;
}
} else {
soldOn = true;
}
const diffPrice = compareAtPrice - price;
const saveLabelContent = product_save_type == 'percent' ? (offRatio + '%') : ` `;
let saveText = "{off_ratio}\u5272\u5f15";
saveText = saveText.replace('{off_ratio}', saveLabelContent);
if (product_save_type == 'percent') {
saveText = "-" + offRatio + "%";
}
var product_tags = (data.tags && data.tags.split(',')) || [];
var badge = '';
product_tags.forEach(function(item, i){
if(item.includes('_badge_')){
badge = item.split('_badge_')[1];
}
})
const productTitle = data.title;
const heading = "title" === 'subtitle' ? data.brief : productTitle;
const variantValues = [];
const showVariants = [];
if (data.need_variant_image && enable_collection_thumb_image && variantNames.length > 0) {
for (let i = 0; i < (data.options || []).length; i++) {
const option = data.options[i];
const optionName = option.name.toLowerCase();
if (variantNames.includes(optionName)) {
for (let j = 0; j < productVariants.length; j++) {
const variant = productVariants[j];
const value = variant.options[i].value;
if (!variantValues.includes(value)) {
variantValues.push(value);
showVariants.push(variant);
}
}
break;
}
}
}
return `
${showVariants.map((item, idx) => {
let showMoreHtml = '';
if (idx == thumbMaxNum) {
showMoreHtml += `
`;
}
return `
${showMoreHtml}
`;
}).join('')
}
`;
}()}
`).join('')}