Women's Ethnic Style Print Casual Long Sleeve Comfortable Cotton Shirt
${function() {
const variantData = data.variant || {"id":"9c94d158-1522-4b05-8761-d9d4369595f6","product_id":"be6cb4a2-7fcd-437d-8489-a9fb750b48f2","title":"pink-S","weight_unit":"kg","inventory_quantity":500,"sku":"XN24YS4997-pink-S","barcode":"","position":1,"option1":"pink","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/37fadd80011fe89e715b5d4ab4e95a04.png","path":"37fadd80011fe89e715b5d4ab4e95a04.png","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":30.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"30.99","retail_price":"0","available":true,"url":"\/products\/cute-sheep-embroidery-art-cozy-sweatshirt-v8uk-2s00-z21h-ratr-9e8a-cahu-xlw9-4phf-vznb-mvfs-y542-vo4k-gnoc-hapk-pd33-of9z-7jwh-7dnn-pcjo-h3v3-pogs-r6tg-hgqs-nqfp-bnh5-689r-tsfg-8flm-q60k-d1zn-9f6l-89o6-n91p-zz2y-74tw-cl7s-2nn2-05cn-l9f3?variant=9c94d158-1522-4b05-8761-d9d4369595f6","available_quantity":500,"options":[{"name":"color","value":"pink"},{"name":"size","value":"S"}],"off_ratio":0,"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:
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
$30.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":"9c94d158-1522-4b05-8761-d9d4369595f6","product_id":"be6cb4a2-7fcd-437d-8489-a9fb750b48f2","title":"pink-S","weight_unit":"kg","inventory_quantity":500,"sku":"XN24YS4997-pink-S","barcode":"","position":1,"option1":"pink","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/37fadd80011fe89e715b5d4ab4e95a04.png","path":"37fadd80011fe89e715b5d4ab4e95a04.png","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":30.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"30.99","retail_price":"0","available":true,"url":"\/products\/cute-sheep-embroidery-art-cozy-sweatshirt-v8uk-2s00-z21h-ratr-9e8a-cahu-xlw9-4phf-vznb-mvfs-y542-vo4k-gnoc-hapk-pd33-of9z-7jwh-7dnn-pcjo-h3v3-pogs-r6tg-hgqs-nqfp-bnh5-689r-tsfg-8flm-q60k-d1zn-9f6l-89o6-n91p-zz2y-74tw-cl7s-2nn2-05cn-l9f3?variant=9c94d158-1522-4b05-8761-d9d4369595f6","available_quantity":500,"options":[{"name":"color","value":"pink"},{"name":"size","value":"S"}],"off_ratio":0,"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.