Classy Elastic Knit Lounge Set
${function() {
const variantData = data.variant || {"id":"e12fc4ee-426b-4c38-bfd3-6373c0fa66c7","product_id":"6ac7fefa-6cb0-4cfd-97af-0e438c9e602b","title":"Apricot-Short sleeve-S","weight_unit":"kg","inventory_quantity":999,"sku":"TZAYURHI-Apricot-Short sleeve-S","barcode":"","position":1,"option1":"Apricot","option2":"Short sleeve","option3":"S","note":"","image":{"src":"\/\/img.staticdj.com\/9c497e87f0b544bdb7e1a605730f034d.jpeg","path":"9c497e87f0b544bdb7e1a605730f034d.jpeg","width":1969,"height":2560,"alt":"","aspect_ratio":0.769140625},"wholesale_price":[{"price":50.39,"min_quantity":1}],"weight":"0","compare_at_price":"92.39","price":"50.39","retail_price":"92.39","available":true,"url":"\/products\/classy-elastic-knit-lounge-set-buy-2-free-shipping8ad5e072-fd87-4a30-b13c-a7630507a160?variant=e12fc4ee-426b-4c38-bfd3-6373c0fa66c7","available_quantity":999999999,"options":[{"name":"Color","value":"Apricot"},{"name":"Style","value":"Short sleeve"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Apricot
${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}
`
}()}
Style:
Short sleeve
${function(){
const optName = "Style";
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
$50.39
${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":"e12fc4ee-426b-4c38-bfd3-6373c0fa66c7","product_id":"6ac7fefa-6cb0-4cfd-97af-0e438c9e602b","title":"Apricot-Short sleeve-S","weight_unit":"kg","inventory_quantity":999,"sku":"TZAYURHI-Apricot-Short sleeve-S","barcode":"","position":1,"option1":"Apricot","option2":"Short sleeve","option3":"S","note":"","image":{"src":"\/\/img.staticdj.com\/9c497e87f0b544bdb7e1a605730f034d.jpeg","path":"9c497e87f0b544bdb7e1a605730f034d.jpeg","width":1969,"height":2560,"alt":"","aspect_ratio":0.769140625},"wholesale_price":[{"price":50.39,"min_quantity":1}],"weight":"0","compare_at_price":"92.39","price":"50.39","retail_price":"92.39","available":true,"url":"\/products\/classy-elastic-knit-lounge-set-buy-2-free-shipping8ad5e072-fd87-4a30-b13c-a7630507a160?variant=e12fc4ee-426b-4c38-bfd3-6373c0fa66c7","available_quantity":999999999,"options":[{"name":"Color","value":"Apricot"},{"name":"Style","value":"Short sleeve"},{"name":"Size","value":"S"}],"off_ratio":45,"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.
Sku : TZAYURHI-Apricot-Short sleeve-S
${function(){
const variantData = data.variant || {"id":"e12fc4ee-426b-4c38-bfd3-6373c0fa66c7","product_id":"6ac7fefa-6cb0-4cfd-97af-0e438c9e602b","title":"Apricot-Short sleeve-S","weight_unit":"kg","inventory_quantity":999,"sku":"TZAYURHI-Apricot-Short sleeve-S","barcode":"","position":1,"option1":"Apricot","option2":"Short sleeve","option3":"S","note":"","image":{"src":"\/\/img.staticdj.com\/9c497e87f0b544bdb7e1a605730f034d.jpeg","path":"9c497e87f0b544bdb7e1a605730f034d.jpeg","width":1969,"height":2560,"alt":"","aspect_ratio":0.769140625},"wholesale_price":[{"price":50.39,"min_quantity":1}],"weight":"0","compare_at_price":"92.39","price":"50.39","retail_price":"92.39","available":true,"url":"\/products\/classy-elastic-knit-lounge-set-buy-2-free-shipping8ad5e072-fd87-4a30-b13c-a7630507a160?variant=e12fc4ee-426b-4c38-bfd3-6373c0fa66c7","available_quantity":999999999,"options":[{"name":"Color","value":"Apricot"},{"name":"Style","value":"Short sleeve"},{"name":"Size","value":"S"}],"off_ratio":45,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}