Faith Butterfly Sunflowers Casual Round Neck T-Shirt -BSTC1330
${function() {
const variantData = data.variant || {"id":"2f2f48bd-90eb-4185-9fe5-6c2149576d2e","product_id":"8bd25c47-2b87-4159-827c-5c1906de9d4a","title":"Wine-Red-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":13,"option1":"Wine-Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/82bf9e81b9924418e67c00cda44cc41f.jpg","path":"82bf9e81b9924418e67c00cda44cc41f.jpg","width":1001,"height":1001,"alt":"Faith Butterfly Sunflowers Casual Round Neck T-Shirt -BSTC1330-Guru-buzz","aspect_ratio":1},"wholesale_price":[{"price":18.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"18.99","retail_price":"35.99","available":true,"url":"\/products\/faith-butterfly-sunflowers-casual-round-neck-t-shirt-bstc1330-1vke?variant=2f2f48bd-90eb-4185-9fe5-6c2149576d2e","available_quantity":999999999,"options":[{"name":"color","value":"Wine-Red"},{"name":"size","value":"S"}],"off_ratio":47,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Wine-Red
${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:
S
${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
$18.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":"2f2f48bd-90eb-4185-9fe5-6c2149576d2e","product_id":"8bd25c47-2b87-4159-827c-5c1906de9d4a","title":"Wine-Red-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":13,"option1":"Wine-Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/82bf9e81b9924418e67c00cda44cc41f.jpg","path":"82bf9e81b9924418e67c00cda44cc41f.jpg","width":1001,"height":1001,"alt":"Faith Butterfly Sunflowers Casual Round Neck T-Shirt -BSTC1330-Guru-buzz","aspect_ratio":1},"wholesale_price":[{"price":18.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"18.99","retail_price":"35.99","available":true,"url":"\/products\/faith-butterfly-sunflowers-casual-round-neck-t-shirt-bstc1330-1vke?variant=2f2f48bd-90eb-4185-9fe5-6c2149576d2e","available_quantity":999999999,"options":[{"name":"color","value":"Wine-Red"},{"name":"size","value":"S"}],"off_ratio":47,"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.