SAYO TOMASYON Cotton Round Neck Parent-child Outfit
${function() {
const variantData = data.variant || {"id":"9d257948-6529-4378-a2ed-e28f778816d7","product_id":"854e38a1-80bb-453c-af3b-1fc25a08c574","title":"Green-Baby130cm","weight_unit":"g","inventory_quantity":656,"sku":"","barcode":"","position":1,"option1":"Green","option2":"Baby130cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/990a6006bbbaa505a712196ba38af0f4.jpeg","path":"990a6006bbbaa505a712196ba38af0f4.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.7,"min_quantity":1}],"weight":"220","compare_at_price":"15.7","price":"15.7","retail_price":"15.7","available":true,"url":"\/products\/sayo-tomasyon-cotton-round-neck-parent-child-outfit?variant=9d257948-6529-4378-a2ed-e28f778816d7","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"Baby130cm"}],"off_ratio":0,"flashsale_info":[],"sales":431};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Green
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
Baby130cm
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$15.70
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"9d257948-6529-4378-a2ed-e28f778816d7","product_id":"854e38a1-80bb-453c-af3b-1fc25a08c574","title":"Green-Baby130cm","weight_unit":"g","inventory_quantity":656,"sku":"","barcode":"","position":1,"option1":"Green","option2":"Baby130cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/990a6006bbbaa505a712196ba38af0f4.jpeg","path":"990a6006bbbaa505a712196ba38af0f4.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.7,"min_quantity":1}],"weight":"220","compare_at_price":"15.7","price":"15.7","retail_price":"15.7","available":true,"url":"\/products\/sayo-tomasyon-cotton-round-neck-parent-child-outfit?variant=9d257948-6529-4378-a2ed-e28f778816d7","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"Baby130cm"}],"off_ratio":0,"flashsale_info":[],"sales":431};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.