Women's casual short-sleeved T-shirt
${function() {
const variantData = data.variant || {"id":"271c19f4-4b5d-4465-b798-5d8ae3ae56f5","product_id":"f250418c-5ee1-4649-a50f-bd466ddc942a","title":"Claret-S","weight_unit":"kg","inventory_quantity":500,"sku":"XH0266-Claret-S","barcode":"","position":1,"option1":"Claret","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b0f3f97c39ff11a1a06d87af0f03584c.jpeg","path":"b0f3f97c39ff11a1a06d87af0f03584c.jpeg","width":667,"height":890,"alt":"","aspect_ratio":0.749438202247191},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"25.99","retail_price":"0","available":true,"url":"\/products\/fish-embroidery-pattern-linen-blend-casual-shirt-d5fm-1un9-sa4f-xh1y-xnqc-kjwd-vy1h-rjwa-pomz-145v-macv-dqi1-nkih-hd7c-ov5t-oe4s-aq6y-tba0-nzvn-9fam-y4hs-ae0e-73ua-evxn-vv5z-ckze-fd75-xfv7-s62s-02b6-oll9-2t3h-mu7e-9mfq-lop5-1dhp-cjri-66pu-9gq3-kqwo-h-gtzs?variant=271c19f4-4b5d-4465-b798-5d8ae3ae56f5","available_quantity":999999999,"options":[{"name":"color","value":"Claret"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Claret
${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
$25.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":"271c19f4-4b5d-4465-b798-5d8ae3ae56f5","product_id":"f250418c-5ee1-4649-a50f-bd466ddc942a","title":"Claret-S","weight_unit":"kg","inventory_quantity":500,"sku":"XH0266-Claret-S","barcode":"","position":1,"option1":"Claret","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b0f3f97c39ff11a1a06d87af0f03584c.jpeg","path":"b0f3f97c39ff11a1a06d87af0f03584c.jpeg","width":667,"height":890,"alt":"","aspect_ratio":0.749438202247191},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"25.99","retail_price":"0","available":true,"url":"\/products\/fish-embroidery-pattern-linen-blend-casual-shirt-d5fm-1un9-sa4f-xh1y-xnqc-kjwd-vy1h-rjwa-pomz-145v-macv-dqi1-nkih-hd7c-ov5t-oe4s-aq6y-tba0-nzvn-9fam-y4hs-ae0e-73ua-evxn-vv5z-ckze-fd75-xfv7-s62s-02b6-oll9-2t3h-mu7e-9mfq-lop5-1dhp-cjri-66pu-9gq3-kqwo-h-gtzs?variant=271c19f4-4b5d-4465-b798-5d8ae3ae56f5","available_quantity":999999999,"options":[{"name":"color","value":"Claret"},{"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.