New Spring Embroidery Bucket Hat Baby Windproof Cartoon Fruit Sombrero Cap Kids Cute Sunshade Fishing Hat Boy Girl 2-6 Years Bob
${function() {
const variantData = data.variant || {"id":"0bd3b9c0-3f6a-4615-8cbe-0d70019ffaf0","product_id":"34f5fdb1-ad94-4792-aaf0-679e022501b8","title":"Pink-48-50CM","weight_unit":"lb","inventory_quantity":5000,"sku":"53159207-pink-48-50cm","barcode":"","position":1,"option1":"Pink","option2":"48-50CM","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40df1bd17c4c9efd5083bad28c6970dc.jpeg","path":"40df1bd17c4c9efd5083bad28c6970dc.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.99,"min_quantity":1}],"weight":"0","compare_at_price":"71.66","price":"13.99","retail_price":"71.66","available":true,"url":"\/products\/new-spring-embroidery-bucket-hat-baby-windproof-cartoon-fruit-sombrero-cap-kids-cute-sunshade-fishing-hat-boy-girl-2-6-years-bob?variant=0bd3b9c0-3f6a-4615-8cbe-0d70019ffaf0","available_quantity":5000,"options":[{"name":"Color","value":"Pink"},{"name":"Size","value":"48-50CM"}],"off_ratio":80,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Pink
${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:
48-50CM
${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
$13.99
${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":"0bd3b9c0-3f6a-4615-8cbe-0d70019ffaf0","product_id":"34f5fdb1-ad94-4792-aaf0-679e022501b8","title":"Pink-48-50CM","weight_unit":"lb","inventory_quantity":5000,"sku":"53159207-pink-48-50cm","barcode":"","position":1,"option1":"Pink","option2":"48-50CM","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40df1bd17c4c9efd5083bad28c6970dc.jpeg","path":"40df1bd17c4c9efd5083bad28c6970dc.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.99,"min_quantity":1}],"weight":"0","compare_at_price":"71.66","price":"13.99","retail_price":"71.66","available":true,"url":"\/products\/new-spring-embroidery-bucket-hat-baby-windproof-cartoon-fruit-sombrero-cap-kids-cute-sunshade-fishing-hat-boy-girl-2-6-years-bob?variant=0bd3b9c0-3f6a-4615-8cbe-0d70019ffaf0","available_quantity":5000,"options":[{"name":"Color","value":"Pink"},{"name":"Size","value":"48-50CM"}],"off_ratio":80,"flashsale_info":[],"sales":0};
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.
${function(){
const variantData = data.variant || {"id":"0bd3b9c0-3f6a-4615-8cbe-0d70019ffaf0","product_id":"34f5fdb1-ad94-4792-aaf0-679e022501b8","title":"Pink-48-50CM","weight_unit":"lb","inventory_quantity":5000,"sku":"53159207-pink-48-50cm","barcode":"","position":1,"option1":"Pink","option2":"48-50CM","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40df1bd17c4c9efd5083bad28c6970dc.jpeg","path":"40df1bd17c4c9efd5083bad28c6970dc.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.99,"min_quantity":1}],"weight":"0","compare_at_price":"71.66","price":"13.99","retail_price":"71.66","available":true,"url":"\/products\/new-spring-embroidery-bucket-hat-baby-windproof-cartoon-fruit-sombrero-cap-kids-cute-sunshade-fishing-hat-boy-girl-2-6-years-bob?variant=0bd3b9c0-3f6a-4615-8cbe-0d70019ffaf0","available_quantity":5000,"options":[{"name":"Color","value":"Pink"},{"name":"Size","value":"48-50CM"}],"off_ratio":80,"flashsale_info":[],"sales":0};
return `
`
}()}